Java: Which statement about ConcurrentHashMap and Concurrent Collections is the strongest interview answer?

Difficulty:

Easy

Questions:

1

Time Limit:

2 minutes

Passing Score:

100%

Question

Which statement about ConcurrentHashMap and Concurrent Collections is the strongest interview answer?

  1. ConcurrentHashMap supports safe concurrent access without a single coarse lock for typical operations.
  2. ConcurrentHashMap and Concurrent Collections is mostly a naming style choice and has little effect on runtime or design.
  3. ConcurrentHashMap and Concurrent Collections exists mainly to reduce the number of Java files in a project.
  4. 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