0

Is java pass by reference or pass by value

whats the difference?? and the use of each

19th Jul 2017, 2:19 AM
Nisan Abeywickrama
Nisan Abeywickrama - avatar
1 Odpowiedź
+ 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
19th Jul 2017, 3:25 AM
ChaoticDawg
ChaoticDawg - avatar