0

is java a pass by reference or pass by value

?

30th Nov 2016, 8:26 AM
Zameer shaikh
Zameer shaikh - avatar
3 odpowiedzi
+ 3
nope for reference data type it's pass by reference but for primitive data type it's pass by value
30th Nov 2016, 11:07 AM
damilare lamidi
damilare lamidi - avatar
+ 1
Java is strictly pass-by-value, exactly as in C.
30th Nov 2016, 10:29 AM
Felipe Cruz
Felipe Cruz - avatar
0
it actually depends on which datatype??hah🙏
30th Nov 2016, 11:12 AM
Zameer shaikh
Zameer shaikh - avatar