0

call by reference vs call by value

Java is call by value -- but how?

10th Dec 2016, 11:20 AM
Md Shariful Islam
Md Shariful Islam - avatar
2 Answers
0
Java uses call by value for primitive data type and call by reference for reference data type
10th Dec 2016, 11:35 AM
damilare lamidi
damilare lamidi - avatar
0
'By value' simply means the value is copied and passed to the function. 'By reference' means the memory location of the original value is passed and updated directly.
10th Dec 2016, 12:51 PM
Kerrash
Kerrash - avatar