Which three will compile and rim 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 */ } }

时间:2022-09-17 17:47:47 所属题库:SCJP程序员认证考试题库

相似题目