2013年5月8日

摘要: 网上有人做了一个例子,来说明return语句在try-catch-finally语句中的执行。这里就不贴原文了,只是简单说明一下: 1 /* 情况1:没有exception发生,try 中的return 被finally中的return替换了。 2 */ 3 public class test { 4 public static void main (String[] args) { 5 System.out.println("returnInTryCatchFinally() = " + returnInTryCatchFinally()); 6 } 7 8... 阅读全文
posted @ 2013-05-08 23:57 name2579 阅读(1051) 评论(2) 推荐(4) 编辑

导航