4 ms·
If something is pass-by-value, but the underlying value primitive is not actually part of the language, we typically call this pass-by-object.
by blattimwind 9y ago
If something is pass-by-value, but the underlying value primitive is not actually part of the language, we typically call this pass-by-object.
- jjnoakes 9y agoReference values are part of the Java language. It's the reason "==" doesn't do what you'd expect it to, and why "a = ..." inside a method (assuming "a" was a parameter) doesn't affect the caller.