jQuery in Action, 3rd edition
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: http://aspose.com/file-tools
subject: Differences between vector and arraylist
It's not a secret anymore!