GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes array list vs vector Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "array list vs vector" Watch "array list vs vector" New topic
Author

array list vs vector

bhuvi mdu
Greenhorn

Joined: May 03, 2005
Posts: 17
I knew the following pts.:-

1) Vector is Synchronized and Array List is not
2) Vector Size grows beyond the limit, it will double the size whereas Array List increase 50% of size.

Can anyone say some more differences.


-bhuvi
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

The source code for both of these classes is located in src.zip, available with the JDK/SDK distribution you downloaded.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Open the JavaDocs side by side and see how they compare on features. Is there anything one can do that the other can't?


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
GeeCON Prague 2014
 
subject: array list vs vector