public class ThrowOut {
public static void main(String[] args) throws Throwable{
try{
throw new Throwable();
}catch(Exception e){
System.err.println("Cought in main()");
}catch(Throwable t){
System.out.println("Cought in t mani()");
}
}
}
实验证明:程序不能捕捉父类异常。