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
Define jre i.e. Java runtime environment?
Can a lock be acquired on a class in java programming?
What is java command?
Can we execute java program without main method?
Why is the singleton pattern considered to be an anti pattern?
What are the properties of thread?
Which collection is best for sorting in java?
Can we extend a class with private constructor?
What is length in java?
Is set thread safe java?
Is char a method in java?
What is a local block?
Can we extend singleton class in java?
Explain about member inner classes?
Can we clone singleton object?