Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dif between vector() and ArrayList()

 
santosh gunake
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there any difference between vector and arraylist other than synchronization
 
Arno Reper
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when you use vector its soooo slowly...but its because of the synchronized method, that 's why vector is deprecated...and you beter use arraylist who has the same possiblities

arno
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more difference is in terms of growth of the collection

ArrayList increases its size by 50%.

Whereas, Vector increases its size by 200%.

regards

Naseem Khan
[ May 20, 2006: Message edited by: Naseem Khan ]
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vector or ArrayList -- which is better
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic