摘要: 将代码写在finally块中与写在trycatch底下有区别,这个区别体现在catch没能够捕捉到异常,致使异常继续上抛的时候。 1 static void test1() throws Exception { 2 try { 3 throw new Exception("exception"); 阅读全文
posted @ 2021-10-18 14:44 轻红 阅读(430) 评论(0) 推荐(1) 编辑