Whose lock will be obtained
posted 13 years ago
There is an object of type Class that represents each class type that has been loaded. Static methods are synchronized on the lock for that Class instance. Take a look at the javadoc for the getClass method of the Object class.