1. public interface A { <br /> 2. public void doSomething(String thing); <br /> 3. } <br /> 1. public class AImpl implements A { <br /> 2. public void doSomething(String msg) { } <br /> 3. } <br /> 1. public class B { <br /> 2. public A doit() { <br /> 3. // more code here <br /> 4. } <br /> 5. <br /> 6. public String execute() {<br /> 7. // more code here <br /> 8. } <br /> 9. } <br /> 1. public class C extends B { <br /> 2. public AImpl doit() {<br />  3. // more code here <br /> 4. } <br /> 5. <br /> 6. public Object execute() { <br /> 7. // more code&ens
A、 Compilation will succeed for all classes and interfaces.
B、 Compilation of class C will fail because of an error in line 2.
C、 Compilation of class C will fail because of an error in line 6.
D、 Compilation of class AImpl will fail because of an error in line 2.