In a Java program,how to differentiate between call by reference and call by value?Can you please explain with example?
Answers
Answered by
2
Answer:
Call by value, a copy of the variable is passed whereas in Call by reference, a variable itself is passed. In Call by value, actual and formal arguments will be created in different memory locations whereas in Call by reference, actual and formal arguments will be created in the same memory location.
Explanation:
pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeese mark me as brainliest
Answered by
0
Explanation:
i know the answer ...In a Java program,how to differentiate between call by reference and call by value?
Similar questions