3 ms·
No. If Java were pass-by-reference a function could cause the caller's reference to point to an entirely different object. That is, yes, the implementation must
by colanderman 9y ago
No. If Java were pass-by-reference a function could cause the caller's reference to point to an entirely different object. That is, yes, the implementation must pass a pointer which points into the caller's frame. This is what happens with C++ references. This is not what happens with Java arguments.