What is the main advantage of using AtomicInteger over a regular int for concurrency?
AtomicInteger
int
It ensures atomic operations for thread safety
It has a larger range of values
It is faster than using a regular int
It can store more complex data types