2
Reply

What is the difference between ArrayList and Vector? which one is better in Java

Satheesh Reddy

Satheesh Reddy

Jan 21, 2014
2k
0

    http://www.tutorialspoint.com/listtutorial/Difference-between-ArrayList-and-Vector-in-java/4680

    Munesh Sharma
    April 15, 2014
    0

    You should normally use ArrayList - it offers better performance.Vector has just one "advantage" - it is synchronised for concurrent modification. But it turns out that this feature isn't very useful - if you are writing concurrent code, you typically need to lock at a much higher level of granularity than an individual collection class.As a result, Vector is often considered deprecated nowadays.

    Shweta Lodha
    February 03, 2014
    0