scjp真题请教....
import java.io.IOException;
public class ExceptionTest{
public static void main(String[] args){
try{
methodA();
}catch(IOException e){
System.out.println("Caught IOException");
}catch(Exception e){
System.out.println("Caught Exception");
}
}
public static void methodA(){
throw new IOException();
}
请问这个程序应该输出什么呢?有人能讲出原因吗?