Ask a Question

"Objects are passed by refference in java" explain it with a example?

on 2015-04-13 13:20:34   by Amit   on BCA  2 answers

Rajni

on 2015-04-14 09:30:00  

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.