What is the primary use of atomic classes like AtomicInteger in Java?
AtomicInteger
To reduce the memory footprint of applications
To provide a thread-safe way to modify single values
To synchronize the execution of multiple threads
To manage large collections of data efficiently