0

Hi! Could Someone please explain me the difference between "Pass By Value" & "Pass By Reference" In Java? I can't understand it clearly. Please give some easy example and little description? Any help would be appreciated.

Thanks.:-/

5
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by Muralidharan.E
0

Pass by value- passing the copy of the value.

Pass by reference- passing the address itself rather than passing the value.

0

> Pass by reference- pass class Object.
Nope, try again. Object reference is still passed by value. Google it, there are plenty of explanations about.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.