Skip to content
Sharp

Concurrency basics · interview question

Which Java collection is designed for high concurrency and avoids global locking?

Multiple choiceEasychapter-15-curatedpremiumconcurrencyconcurrent-collections
Choose one answer
Answer and explanation

Correct answer

A. ConcurrentHashMap

Why

ConcurrentHashMap is designed to handle high concurrency with better performance by using lock striping, which avoids global locking.

Test yourself on Concurrency basics

A free test with instant, explained results. No account needed.

Start free test
All Concurrency basics questions →