I\'m looking at some code in a third party library that contains a synchronized method, and within this method there is a synchronized block that locks on an instance variab
Consider this:
public void someMethod() { synchronized(bar) { // fully accessible before entering the other synchronized bar block // but not afterwards } }
Get it clearly, synchronizing only blocks if 2 blocks synchronize on the same object.