Computer Science, asked by 31shivani, 1 year ago

what is the difference between call by value and call by reference in Java

Answers

Answered by Anonymous
3
The major difference between call by value and call by reference is that in call by valuea copy of actual arguments is passed to respective formal arguments. ... In C, allfunction arguments are passed "by value" because C does not support references like C++ and Java do.
Answered by Anonymous
1

\huge\mathrm\red{Answer}

The one and only difference between the call by reference and call by value is that in call by value any changes made in the formal parameter will not affect or reflect the actual parameter but in case of call by reference any change made in the formal parameters will affect and reflect in the actual parameter

Similar questions