What is synchronization in Java?
Synchronization is the mechanism that ensures that only one thread is accessed the resources at a time.