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
What is jrmp?
What do you understand by an io stream?
What are serialization and deserialization?
Is singleton class thread safe?
How to set the permissions to a file in java?
Explain how hashmap works?
What is final variable?
Difference between character constant and string constant in java ?
What is the use of System class?
Explain about sets?
How do you achieve polymorphism in java?
Can a class be private or protected in java?
What do you mean by default constructor in java?
What is the latest java version?
How to sort array of 0 and 1 in java?