How many ways can an argument be passed to a subroutine?
Answer Posted / janet
An argument can be passed in two ways. They are passing by
value and passing by reference.
Passing by value: This method copies the value of an
argument in to the formal parameters of the subroutine.
Passing by reference: In this method, a reference to an
argument(not the value of the argument) is passed to the
parameter.
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
Which is bigger float or double java?
Explain listiterator and methods in listiterator?
What is the difference between checked exception and unchecked exception?
Is space a character in java?
What is fundamental datatype?
What is procedure overloading?
Write a program in java to create a doubly linked list containing n nodes.
What are new features introduced with java 8 ?
What does yield method of the thread class do?
When a byte datatype is used?
What is a method in coding?
Is node a data type in java?
How do you remove duplicates from an array in java?
When does an object becomes eligible for garbage collection in java?
How does compareto work in java?