When a static thread is synchronized on whose object is the lock 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.
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>