Question 19
Back to Exercise
Which map should several threads update concurrently?
- A HashMap
- B ConcurrentHashMap Correct
- C TreeMap
- D LinkedHashMap
Correct Answer: Option B
Plain HashMap can lose updates or corrupt itself under concurrent writes.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!