public int test3(){
try{
int divider = 10 ;
int result = 100;
while(divider>-1){
divider--;
result = result + 100/divider;
}
return result;
}catch(Exception e){
e.printStackTrace();
System.out.println("循环抛出异常了!!!");
return 999;
}finally{
System.out.println("我是finally!! 哈哈!!~");
System.out.println("我是 result ! 我的值为:" );
}
System.out.println("我是test3(),我执行完了,表想我~!!");//这句为不可达语句?!!
return 1111;
}
Li国庆快到碗里来
相关分类