|
| Total Answers and Comments: 7 |
Last Update: December 14, 2009 Asked by: bhatiagagan5 |
|
| | |
|
Submitted by: jamanat I guess call by value and call by reference everyone knows. In Java: Call By value - premitive types passed in the method call, push their values on stack and hence said as called by Values.
Call By Reference - All objects passed to any method call, pass their reference on stack and hence said as called by reference.
Remiaining is call by address (should be same as call by reference), if not, the person may be addressing following: Static final member variables (constants) passed in the method call which are in the permanent memory and only the address (or reference) is pushed on stack. As the value on this address can not be changed (only read), the person is refering it as address and not reference.
Hope this helps. Even if you dont answer the person exactly, if you give above answer, interview pannel will understand that your concepts are clear and that's what you need to show.
Thanks, Jamanat
Above answer was rated as good by the following members: AmmiSudipto | Go To Top
|