Java synchronize block on same object in different methods
问题 I am trying to understand the concept of synchronized blocks in java. As of the documents that I have read, I understood that if we acquire a lock ( synchronized block using an instance variable ) then we cannot acquire a synchronized lock on same object in that class. But when I tried practically using the following snippet I found that my understanding is going wrong. I.e I am able to acquire lock (synchronized block on same instance variable) in two different methods at the same time. When