Suppose there is a Synchronized method which in turn calls other ordinary methods as shown below:
public static synchronized void doSomething(){
doIt1();
}
public doIt1(){
doIt2();
}
My question is, when I have the above code and call doSomething(), which is a synchronized method, will only this method be synchronized, or all the subsequent methods called, like doIt1 & doIt2, also get synchronized?
synchronizedon what?