0
Is java pass by reference or pass by value
whats the difference?? and the use of each
1 Answer
+ 1
Java is a pass-by-value language. Even Objects are still pass-by-value behind the scenes. Objects simulate pass-by-reference by passing the value of their reference.
https://stackoverflow.com/questions/40480/is-java-pass-by-reference-or-pass-by-value