Click here to Skip to main content
16,021,988 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
vector in java is synchronized or not
Posted
Comments
Sergey Alexandrovich Kryukov 18-Sep-14 13:54pm    
What's wrong with reading original documentation?
—SA

1 solution

Unlike the new collection implementations, Vector is synchronized. If a thread-safe implementation is not needed, it is recommended to use ArrayList in place of Vector.
—SA
 
Share this answer
 
Comments
CPallini 18-Sep-14 14:42pm    
5. Nothing better than documentation :-)
Sergey Alexandrovich Kryukov 18-Sep-14 14:45pm    
Right. Except some... better documentation.
Thank you, Carlo.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900