Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

array list vs vector

 
bhuvi mdu
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Open the JavaDocs side by side and see how they compare on features. Is there anything one can do that the other can't?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic