Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: Java 是否通过引用传递?
请尽快告诉我答案!!!
Java 不通过引用传递方法参数 - 它通过值传递它们。
看看这个:
http://www.javaworld.com/javaworld/javaqa/2000-05/03-qa-0526-pass.html
Java 编译器决定什么是最好的。