I would like to use collection classes for adding,removing and retrieving objects in multiple thread.
Collections.synchronizedList
and Vector
both classes are thread safe. Does any tell me the difference between Collections.synchronizedList
and Vector
and explain that when should I use Vector
and Collections.synchronizedList
?