How do we pass parameters by value in a Java method?
Answers
Answered by
0
✨✨Pass by value: The method parameter values are copied to another variable and then the coppied object is passed, that is why it is called pass by value.
✨✨Pass by reference: An alias or reference to the actual parameter is passed to the method, that is why it is called pass by reference.
I hope it help you
✌️✌️✌️✌️✌️✌️
plz mark as brilliant
❣️❣️❣️❣️❣️❣️❣️
✨✨Pass by reference: An alias or reference to the actual parameter is passed to the method, that is why it is called pass by reference.
I hope it help you
✌️✌️✌️✌️✌️✌️
plz mark as brilliant
❣️❣️❣️❣️❣️❣️❣️
Answered by
0
Answer:
changes made to formal parameters don't get transmitted back to the caller .Any modifications to the formal parameters variable inside the called function or method affect only the separate storage location and will not be reflected in the actual parameter in the calling environment. This method is also called as Call by Value.
Similar questions
English,
7 months ago
Economy,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Biology,
1 year ago
Social Sciences,
1 year ago