62,614
社区成员
发帖
与我相关
我的任务
分享
public class Test {
public static int i = 0;
public static int exception(){
try {
throw new Exception();
}catch(Exception e){
return ++i;
}finally{
System.out.println("finally " + ++i);
return ++i; //行100
}
}
public static void main(String[] args){
System.out.println("main " + Test.exception());
System.out.println("over " + Test.i);
}
}