试题详情
单项选择题 public class SomeException {  } Class a:  public class a {  public void doSomething() { }  } Class b:  public class b extends a {  public void doSomething() throws SomeException { }  }  Which is true about the two classes?() 

A、 Compilation of both classes will fail.

B、 Compilation of both classes will succeed.

C、 Compilation of class a will fail. Compilation of class b will succeed.

D、 Compilation of class a will fail. Compilation of class a will succeed.

  • D
  • 关注下方微信公众号,在线模考后查看

热门试题