AtomicInteger - zhamri/MyClass-STIW3054 GitHub Wiki
Why use AtomicInteger?
The primary use of AtomicInteger is when we are in multi-threaded context and we need to perform atomic operations on an int value without using synchronized keyword.
Advantage:
Using the AtomicInteger is equally faster and more readable than performing the same using synchronization.