题目内容
(请给出正确答案)
[主观题]
下列程序的输出结果为()。public class Reentrant{ public synchronized void a() {b();System.ou
下列程序的输出结果为()。 public class Reentrant { public synchronized void a() { b(); System.out.println("here I am,in a()"); } public synchronized void b() { System.out.println("here I am,in b()"); } public static void main(String args[]) { Reentrant r=new Reentrant(); r.a(); } }
A.here I am,in a()/here I am,in b()
B.here I am,in b()/here I am,in a()
C.here I am,in a()
D.here I am,in b()
如搜索结果不匹配,请 联系老师 获取答案