我还没有看懂的代码!!勉强分析了一下,是不是错了?
public class test2{
public static void throwMe(){
throw new RuntimeException();
}
public static void main(String args[]){
try{
System.out.println("开始了");
throwMe();
System.out.println("出错了");
}finally{
System.out.println("结束了");
}
}
}
是不是先显示“开始了”,然后是运行异常,再是“出错了”,最后是结束了