摘要: 忘了在哪看到那个问题,引起了我的疑问,我在CSDN发了一个帖。我把代码帖上来,各位不妨先不看下面的解释,看看输出结果是什么class Test { private int t; Test(int t) { this.t = t; } static void changeRef(Test test) { test = new Test(1); } public static void main(String[] args) { Test test = new Test(2); change... 阅读全文
posted @ 2013-03-19 11:09 BaronZ 阅读(1742) 评论(16) 推荐(0) 编辑