When you need atomic operations on single variables.
Atomic classes provide a way to perform atomic operations on single variables without the use of explicit locks. They are ideal when you need thread-safe updates to counters or flags. In an e-commerce flash sale, AtomicInteger can be used to safely update the number of items sold without synchronization overhead.