File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 -
 
 
subject: Differences between vector and arraylist