Question: can java pass by reference?
Answer: Java always passes parameter variables by value. Object variables in Java always point to the real object in the memory heap. A mutable object's value can be changed when it is passed to a method. ... “Passing by reference” refers to passing the real reference of the variable in memory.