Atomic classes can help make simple shared updates thread-safe.
Practice this question from Quiz: Java Concurrency, with options and an explanation.
Question
Atomic classes can help make simple shared updates thread-safe.
Option A — Correct answer
True
AtomicInteger provides atomic operations such as incrementAndGet.
Option B
False
AtomicInteger provides atomic operations such as incrementAndGet.