【多选题】public class Transfers { public static void main(String[] args) throws Exception { Record r1 = new Record(); Record r2 = new Record(); doTransfer(r1, r2, 5); doTransfer(r2, r1, 2); doTransfer(r1...
A.
The output may be “r1 = 6, r2 = 14”.
B.
The output may be “r1 = 5, r2 = 15”.
C.
The output may be “r1 = 8, r2 = 12”.
D.
The code may run (and complete) with no output.
E.
The code may deadlock (without completing) with no output.
F.
M IllegalStateException or InterruptedException may be thrown at runtime.