finally是在任何情况下都会执行的:①当try中有return语句的时候,测试如下:packagestudy.base_study;/***CreatedbyTaoyongpanon2017/11/26.*测试trycatchfinally的执行顺序*/publicclassTryTest{publicstaticinttest1(){try{return1;}catch(Exceptione){e.printStackTrace();}finally{System.out.println...
查看全文