My question is if I have some code like the following -:
public class OuterClass{
public class InnerClass{
public synchronized methodA(){ /* does something */}
}
}
now when multiple threads want to call the inner class method will they acquire a lock for the outer class object or for the inner class object and how does one modify the statement so that I synchronize access to the outer class object/