posted 17 years ago
hi,
just want add something to what Peter Chase said...
For every class loaded, the JVM has a corresponding java.lang.Class instance. So when a static method is synchronized, it's the lock of java.lang.Class instance which is used.
for instance methods there will be one lock per instance and for static methods one lock per class
Raghu
"Work for a cause and not applause. Live to express and not to impress"