It's not a secret anymore!
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Vector vs Arraylist" Watch "Vector vs Arraylist" New topic

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

Joined: Sep 20, 2010
Posts: 4228

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!