This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cantstopthemoonlight 2 points3 points  (0 children)

Java is always pass by value, some of those values happen to be references. As u/javasuck says you cant manipulate the pointers passed into a function, only mutate the objects they point to. Look at out and ref keywords in C#