public static boolean test()throws Exception{
try{
int i=0;
if(i==0){
throw new Exception("dddd");
}
}catch(Exception e){
throw e;
}finally{
return false;
}
}
如果将return语句写在finally里,则调用他的页面或方法将捕获不到异常