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
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
What is the generic class?
Difference between static synchronization vs. Instance synchronization?
What is the purpose of garbage collection in java?
What is the concatenation operator in java?
Discuss about garbage collector in Java.
What is purpose of find feature?
Does java map allow duplicates?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
Difference between final and effectively final ?
What is the difference between JDK and JVM?
What is the epoch date?
Why is java called java?
What is the r character?
What is var keyword ?