Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Differences between vector and arraylist" Watch "Differences between vector and arraylist" New topic

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:
subject: Differences between vector and arraylist