Skip to content
Sharp

Concurrency basics · interview question

How does AtomicReference enhance thread safety?

Multiple choiceMediumchapter-15-curatedpremiumconcurrencyatomic-variables
Choose one answer
Answer and explanation

Correct answer

C. By allowing atomic reference updates

Why

AtomicReference allows atomic updates to a reference variable, ensuring that changes to the reference are visible to all threads without using locks.

Test yourself on Concurrency basics

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

Start free test
All Concurrency basics questions →