Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (7k points)

Which java collections are synchronized, which are not?

1 Answer

0 votes
by (13.1k points)

Legacy collections like Vector and Hashtable are synchronized. Collections that are synchronized by Collections.synchronized<collectionname>. Concurrent collections like CopyOnWriteArrayList, CopyOnWritearraySet,ConcurrentLinkedQueue, ConcurrentSkipListMap, ConcurrentHashMap,BlockingQueue are synchronized.

ArrayList, LinkedList, HashMap, HashSet, Treemap, Treeset are not synchronized.

Want to learn Java? Check out the core Java training from Intellipaat.

Related questions

0 votes
1 answer
asked Mar 8, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer
asked Feb 24, 2021 in Java by Jake (7k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...