摘要: 之前遇到过一个问题:在try语句中如果有return语句,那么后面的finally是否还会执行?写了段程序验证了下:public class Test { public static void main(String[] args) { int i = 0; try { i = 9; System.out.println("1:" + i); return; } catch (Exception e) { e.printStackTrace(); ... 阅读全文
posted @ 2011-11-05 11:29 董宏飞 阅读(195) 评论(0) 推荐(0) 编辑