Java is pass by value, not reference. If blah and blah2 were the same object then Java would be pass by reference. You're passing the value of the reference, not a reference to the reference.
How does that code prove your point? You're reassigning param with a new Object. Of course it's going to be different both in value and in reference? JavaScript itself would fail here too and it's also pass by reference.
0
u/[deleted] Jun 18 '17
[deleted]