It's trivial to show that pass by reference doesn't occur in Java, since changes to the parameter are independent of changes to the argument.
Once you understand that, it should be clear that the "reference value" is not the object that it refers to.
Which means that passing a "reference value" is not passing the object is refers to -- it just passes a means by which to interact with the object it refers to.
Howβs it going, I'm a Adam, a Full-Stack Engineer, actively searching for work. I'm all about JavaScript. And Frontend but don't let that fool you - I've also got some serious Backend skills.
Location
City of Bath, UK π¬π§
Education
10 plus years* active enterprise development experience and a Fine art degree π¨
This is impressively long. I feel like you have both made important connection, perhaps you should make a post together π certainly a lot to digest here.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It's trivial to show that pass by reference doesn't occur in Java, since changes to the parameter are independent of changes to the argument.
Once you understand that, it should be clear that the "reference value" is not the object that it refers to.
Which means that passing a "reference value" is not passing the object is refers to -- it just passes a means by which to interact with the object it refers to.
This is what I have been saying. The object is not passed. A reference is passed and that reference, points to an object.
This is impressively long. I feel like you have both made important connection, perhaps you should make a post together π certainly a lot to digest here.