jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes Vector vs Arraylist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Vector vs Arraylist" Watch "Vector vs Arraylist" New topic
Author

Vector vs Arraylist

anish jain
Ranch Hand

Joined: Feb 03, 2010
Posts: 129
I read the difference between Vector and Arraylist is that Vector is synchronized(actually it's methods) and Arraylist is not(actually it's methods).

Could you please give an example to explain this difference?
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 4086
    
  18

Do you know what synchronized means?


The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
 
 
subject: Vector vs Arraylist
 
It's not a secret anymore!