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
Is math an abstract class in java?
Explain about serializable interface in java?
What is static synchronization?
Who is the owner of java?
Can list have duplicates in java?
What is the meaning of nullable?
What is the java idl system?
What is rmi and steps involved in developing an rmi object?
What is the byte range?
Explain when classnotfoundexception will be raised ?
What is the list interface in java programming?
Difference between final and effectively final ?
Can It is possible to synchronize the constructor of a Java Class?
What is the difference between the paint() and repaint() methods?
What is a method in programming?