Java copies and passes the reference by value, not the object.
avijit
on 2015-04-22 09:30:00
Java is always pass-by-value. The difficult thing to understand is that Java passes objects as references and those references are passed by value.There is no such thing as "pass-by-reference" in Java.