ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

Difference between ArrayList and Vector ?


ArrayList is NOT synchronized by default.
Vector List is synchronized by default.
ArrayList can use only Iterator to access the elements.
Vector list can use Iterator and Enumeration Interface to access the elements.
The ArrayList increases its array size by 50 percent if it runs out of room.
A Vector defaults to doubling the size of its array if it runs out of room
ArrayList has no default size.
While vector has a default size of 10.
Related Posts Plugin for WordPress, Blogger...
Flag Counter