Home » JAVA Programming » Methods » Question
  1. Which of these is correct about passing an argument by call-by-value process?
    1. Reference to original argument is passed to formal parameter of the subroutine and changes made on parameters of subroutine have effect on original argument
    2. Reference to original argument is passed to formal parameter of the subroutine
    3. Copy of argument is made into the formal parameter of the subroutine and changes made on parameters of subroutine have effect on original argument
    4. Copy of argument is made into the formal parameter of the subroutine
    5. None of these
Correct Option: D

When we pass an argument by call-by-value a copy of argument is made into the formal parameter of the subroutine and changes made on parameters of subroutine have no effect on original argument, they remain the same.



Your comments will be displayed only after manual approval.