2018年8月18日

摘要: 一、Exception和RuntimeException的区别 Exception是RuntimeException的父类,使用了 Exception 的类都必须对异常进行处理(try / throw / throws) RuntimeException 可以由选择性的对异常进行处理(可以不处理) 阅读全文

posted @ 2018-08-18 23:17 lhj1006400320 阅读(639) 评论(0) 推荐(0)

摘要: 一、try、catch、finally常用组合 try{ xxx }catch(xxxException e){ e.printStackTrace(); } try{ xxx }catch(xxxException e){ e.printStackTrace(); }finally{ System 阅读全文

posted @ 2018-08-18 15:42 lhj1006400320 阅读(519) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3