Is it necessary to use &... like c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is it necessary to use &... like c++

When u call change function should we use void change (Person &p) to make it reference?

8th Aug 2016, 12:22 PM
Prasanth
Prasanth - avatar
3 Answers
+ 2
Nope, Java is pass by value, not reference
8th Aug 2016, 10:19 PM
Daniel Santil
Daniel Santil - avatar
0
no
8th Aug 2016, 12:35 PM
Eric Zeus
Eric Zeus - avatar
0
hi
8th Aug 2016, 3:18 PM
md bahar
md bahar - avatar