Originally posted by Santosh Shiroor:
Difference between static synchronized block and synchronized block.
I assume you are asking difference between a static synchronized
method and synchronized
method.
The difference is the object that is used as a monitor.
A static synchronized method uses the static member variable "class" as the monitor and synchronized method uses "this" as the monitor.