Synchronized methods and synchronized statements

Elaborate synchronized methods and synchronized statements?

E

Expert

Verified

Synchronized methods are the methods which are used to control access to an object. A thread only implements a synchronized method than it has occurred the lock for the method's object or class. Synchronized statements are same as the synchronized methods. A synchronized statement can executed only after a thread has occurred the lock for object or class referenced in that synchronized statement.

   Related Questions in JAVA Programming

©TutorsGlobe All rights reserved 2022-2023.