多做题,通过考试没问题!

Oracle认证考试

睦霖题库>其他计算机考试>Oracle认证考试

Which three will compile and run without exception?()

  • A、private synchronized Object o;
  • B、void go() {synchronized() { /* code here */ }
  • C、public synchronized void go() { /* code here */ }
  • D、private synchronized(this) void go() { /* code here */ }
  • E、void go() {synchronized(Object.class) { /* code here */ }
  • F、void go() {Object o = new Object();synchronized(o) { /* code here */ }
正确答案:C,E,F
答案解析:
进入题库查看解析

微信扫一扫手机做题