Question: Java synchronized method
Here is the answer.
Synchronized methods are methods that are used to control access to an object. A threadonly executes a synchronized method after it has acquired the lock for the ethod'sobject or class. Synchronized statements are similar to synchronized methods. Asynchronized statement can only be executed after a thread has acquired the lock for theobject or class referenced in the synchronized statement.