(11
(Choose 1 answer)
Given a Class A:
1. public class A {
2. public void doSomething() {}
3.}
A. Compilation of both classes will succeed.
B. Compilation of class A will fail. Compilation of class B will succeed.
and Class B:
C. Compilation of both classes will fail.
D. Compilation of class B will fail. Compilation of class A will succeed.
1. public class B extends A {
2. public void doSomething() throws SomeException {}
3.}
Which is true about the two classes?