DEV Community

Discussion on: 5 years working with Java, got big surprise today with "Pass by value"

Collapse
 
mephi profile image
mephi

I was told to know nothing about Java when I used the word "pointer" to explain something like that.

Collapse
 
matthewsalerno profile image
matthew-salerno

Haha, tbf I don't really know anything about Java. I'm just translating it to a problem that's fairly common in C. Not sure what you would call it though. Perhaps "reference" is more appropriate?

Thread Thread
 
mephi profile image
mephi

I don't think there is a problem with the word pointer. Sorry, if that wasn't clear. I like your explanation, I'm just salty.
As far as I can see, reference is more common to use in Java, but from my view pointer isn't just a feature in a specific programming language, but a concept. So maybe if someone calls you stupid for using the word pointer, he isn't worth the explanation.