随笔分类 -  Java

摘要:网上有人做了一个例子,来说明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 阅读(1072) 评论(2) 推荐(4)

摘要:1. 一个有意思的例子 1 class myClass { 2 public static void main(String[] args) { 3 Integer a = 127; 4 Integer b = 127; 5 System.ou... 阅读全文

posted @ 2013-04-24 23:06 name2579 阅读(264) 评论(0) 推荐(0)

导航