If the class has two synchronized methods:
public class A { public synchronized int do1() {...} public synchronized void do2(int i) {...} }
Calling these two methods on the same line causes a dead end?
A a = new A(); a.do2(a.do1());
java synchronization
Jonathan
source share