A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Differences between vector and arraylist
Joined: Jul 24, 2009
Sep 02, 2009 07:50:57
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.
Joined: Feb 23, 2009
Sep 02, 2009 08:23:36
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.
An easy to use, light-weight JDBC framework
I agree. Here's the link:
subject: Differences between vector and arraylist
Difference between Vector and ArrayList classes
ArrayList vs Vector
Generics related warning in Vector add method
What is the difference between Vector and ArrayList
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014