Advertisements
Advertisements
Question
The process of calling a method in such a way that the change in the formal arguments reflects on the actual parameter is known as:
Options
Call by reference
Call by value
Call by method
None
MCQ
Solution
Call by reference
Explanation:
In a call by reference, the method receives the address (reference) of the actual parameter. This means that the formal parameters correspond to the exact memory location as the actual parameters, and any changes to the formal parameters directly impact the actual parameters.
shaalaa.com
Is there an error in this question or solution?