可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Which three will com


Which three will compile and run without exception?()

  • Aprivate synchronized Object o;
  • Bvoid go(){   synchronized(){/* code here */}
  • Cpublic synchronized void go(){/* code here */}
  • Dprivate synchronized(this) void go(){/* code here */}
  • Evoid go(){   synchronized(Object.class){/* code here */}
  • Fvoid go(){   Object o = new Object();   synchronized(o){/* code here */}
参考答案
参考解析:
分类:SCJP程序员认证考试题库