Sobes.tech
Middle

On which object does synchronization occur when calling a static synchronized method?

sobes.tech AI

Answer from AI

Synchronization occurs on the Class object associated with the class to which the static synchronized method belongs. For the class MyClass, this object will be MyClass.class.

On which object does synchronization occur when… - sobes.tech