Problem Statement
When should AtomicInteger be preferred over synchronized increments?
Explanation
Atomic classes provide non-blocking, single-variable atomicity. They do not group multiple variables atomically; for that, use locks or higher-level constructs.