Question PRG-JAVA-0052
MediumWhich collection should be used for a thread-safe map with high concurrency in Java?
- A.
Hashtable is always better
- B.
TreeMap
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Java question
Which collection should be used for a thread-safe map with high concurrency in Java?
Hashtable is always better
TreeMap
Sign up free to see the answer and a step-by-step explanation.
HashMap
ConcurrentHashMap