[Quote=引用 13 楼 ZangXT 的回复:]
4、为什么“按引用传递”是错误的?[不要讨论它错误之处,而是问一问他们的思路为什么错误】?
其实关键问题就是这个术语的定义: In programming language design, the term pass by reference properly means that when an argument is passed to a function, the invoked function gets a reference to the original value, not a copy of its value.
java中明显处理的是copy,而不是原来的引用本身,从这个角度说,“pass by reference”这个术语是不合适的。
但我想问题还是出在java设计时的术语选择上,比如Object obj;把这个obj称为“引用”,同时强调传参数时不是"pass by reference",本身就怪怪的。