what is meant by vector in Java is thread safe and synchronized, how is it made thread safe. I\'m looking at internal details of implementation
Vector
is considered 'thread-safe' because access the the internals of the Vector is synchronized. Methods such as add()
, get()
, size()
, etc, are all synchronized such that modifications to the internal structure of the Vector
and access to that internal structure cannot be processed simultaneously by separate threads.