| 本帖最后由 杨兴庭 于 2013-7-8 16:43 编辑 
 class wTest
 {
 public static void main(String[] args)
 {
 System.out.println(new wTest().test());
 }
 static int test()
 {
 int x=1;
 try
 {
 return x;
 }
 finally
 {
 ++x;
 System.out.println(x);
 System.out.println("aaa");
 }
 }
 
 }
 你能告诉我运行结果是什么吗?为什么会有这样的运行结果,求解释。
 
 |