Hi,
If another thread wants to access same or another STATIC method then it will have to wait for the Class level lock to be released.
So my question is : Does a class level lock lock the entire class ?
Class level lock is required to execute the synchronized methods/blocks those have Static identifier. Static means its the CLASS level method and hence you have to obtain CLASS Level lock.
For synchronized instance methods which are invoked using an object of the class, need a lock on the object to be obtained before its invocation.
Regards,
Amit