Mohammed Yousuff wrote:
in above code synchronized block was done in Class Level and the entire class was LOCKED.
I don't know what you mean by "entire class was LOCKED.. " but you still able to invoke any other instance methods (if any) of a given instance of that class.And the reverse is also true for instance locks, that is you are still able to invoke static/non-synchronized instance methods in case of instance lock.