wood burning stoves 2.0*
The moose likes Java in General and the fly likes Differences between vector and arraylist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Differences between vector and arraylist" Watch "Differences between vector and arraylist" New topic
Author

Differences between vector and arraylist

Anwar Hussain
Ranch Hand

Joined: Jul 24, 2009
Posts: 35
Hi ,

I have got two difference

Vector is a legacy class
where as ArrayList is not a legacy class.

Vector is synchronized but ArrayList is not.

Any more differences please let me know.
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
That is pretty much the only difference between Vector and ArrayList. Same with StringBuilder and StringBuffer.

Both synchronized versions are legacy and should not be used.


JDBCSupport - An easy to use, light-weight JDBC framework -
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Differences between vector and arraylist
 
Similar Threads
Generics related warning in Vector add method
Legacy Methods
ArrayList vs Vector
What is the difference between Vector and ArrayList
Difference between Vector and ArrayList classes