Results 1 to 1 of 1
Thread: Vectors vs ArrayList
Vectors vs ArrayList
Both Vector and ArrayList store everything in terms of Object. People get confused when to use what?
If there are chances that multiple threads will access same instance of data structure, then use Vector because Vector is synchronized. Also note that synchronized data structure will give low performance as compared to non synchronized one.
- By BC2210 in forum New To JavaReplies: 2Last Post: 04-21-2008, 12:43 PM
- By mindwarp in forum New To JavaReplies: 3Last Post: 03-10-2008, 03:57 PM
- By kaban in forum New To JavaReplies: 2Last Post: 12-09-2007, 10:04 AM
- By cbrown08 in forum New To JavaReplies: 7Last Post: 11-05-2007, 07:56 PM