【发布时间】:2018-09-30 07:06:09
【问题描述】:
为什么会这样
class blah{
public void someMethod(){
try{
throw new NullPointerException();
}
catch(Throwable t){
System.out.println("Caught!");
throw t;
}
}
}
似乎编译器有些如何看到 t 的实际类型
【问题讨论】:
标签: java error-handling try-catch throwable