Question
Which statement about ConcurrentHashMap and Concurrent Collections is the strongest interview answer?
- ConcurrentHashMap supports safe concurrent access without a single coarse lock for typical operations.
- ConcurrentHashMap and Concurrent Collections is mostly a naming style choice and has little effect on runtime or design.
- ConcurrentHashMap and Concurrent Collections exists mainly to reduce the number of Java files in a project.
- ConcurrentHashMap and Concurrent Collections matters only for frontend frameworks, not for core Java applications.
Hint
Start with the core rule behind ConcurrentHashMap and Concurrent Collections.
Answer and rationale
Correct answer: A. ConcurrentHashMap supports safe concurrent access without a single coarse lock for typical operations.
ConcurrentHashMap supports safe concurrent access without a single coarse lock for typical operations. This is the base concept interviewers commonly test first.
Track: Java