|
| Total Answers and Comments: 7 |
Last Update: July 08, 2008 Asked by: sha_kr2001 |
|
| | |
|
Submitted by: priyaranjan_BISWAL Java does not support pass by reference. Java actually pass-by-value for all variables running within a single VM. pass-by-value means pass-by-variable-value and that means pass-by-copy-of the variable.
It makes no difference if you are passing primitive or reference variable, you always passing a copy of the bits in the variable.
For example: if u are passing the variable with the value 3, you are passing the copy of variable representing 3. If you are passing an object reference variable, you are passing the copy of the bits representing the reference to an object.
Above answer was rated as good by the following members: interviewprep9, Naveenjavasun | Go To Top
|