Synchronization in java is the capability of control the access of
multiple threads to any shared resource.

Java Synchronization is better option where we want to allow only one
thread to access the shared resource

http://www.javatpoint.com/synchronization-in-java