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