单选题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?()ACompilation of both classes
题目
单选题
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.
更多“public class SomeException { } Class a: public class a { ”相关问题