I always thought Java was pass-by-reference.
However, I've seen a couple of blog posts (for example, this blog) that claim that it isn't.
I don't think I understand the distinction they're making.
What is the explanation?
转载于:https://stackoverflow.com/questions/40480/is-java-pass-by-reference-or-pass-by-value