摘要: class A { void foo() { System.out.println("foo() in A"); }//重载 void foo(int a) { System.out.println("foo(int a) in A"); } ... 阅读全文
posted @ 2017-02-14 11:46 Lawliet__zmz 阅读(151) 评论(0) 推荐(0) 编辑
摘要: class A { static int cnt = 0; static { System.out.println("a()"); } int a = 1; A() { System.out.println("A()"); Sy... 阅读全文
posted @ 2017-02-14 09:50 Lawliet__zmz 阅读(210) 评论(0) 推荐(0) 编辑