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