Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

array list vs vector  RSS feed

 
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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!