这是一段代码片段
public class A2 {
public void process() {
System.out.print("A");
}
}
class B2 extends A2{
public void process() throws IOException{
super.process();
System.out.print("B");
throw new IOException()
}

public static void main(String[] args) {
try{
new B().process;
}
catch(IOException e) {
System.out.println("Exception")
}
}
}四个选项是:
A.Exception
B.A,B,Exception
C.Compilation fails because of an error in line 20
D.Compilation fails because of an error in line 14答案是 D想请教一下 为什么选D 能不能详细的解释一下 谢谢