public String testException(){
try {
int i = 1/0;
System.out.println("try......");
return "try!!!";
}catch (ArrayIndexOutOfBoundsException e){
System.out.println("Exception......");
}finally {
System.out.println("finally......");
}
System.out.println("return......");
return "return!";
}
try catch finally return 示例
猜你喜欢
转载自blog.csdn.net/xingcsdnboke/article/details/129858860
今日推荐
周排行