class ExceptionTest{
public static void throwMe(){
throw new RuntimeException();
}
public static void main(String[] args){
ExceptionTest et=new ExceptionTest();
try{
System.out.println("start");
et.throwMe();
System.out.println("wrong");
}finally{
System.out.println("end");
}
}
}
//如果没有catch异常,那么肯定在finally执行完之后系统才会抛出异常,需要注意!