Friday, March 18, 2011

What is the difference between a Vector and ArrayList?

Vectors are synchronized. Any method that touches the Vector's contents is thread safe
ArrayList, on the other hand, is unsynchronized, making them, therefore, not thread safe.

No comments:

Post a Comment