How many ways can an argument be passed to a subroutine?
Answer Posted / samborn pen
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 into the
formal parameter 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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is length in java?
What do you mean by hashing?
Can you have two constructors in java?
how can you take care of mutual exclusion using java threads? : Java thread
What is sizeof in java?
What are different types of inner classes ?
What is a lock or purpose of locks in java?
What is difference between final and immutable?
What does the @override annotation do?
What is file in java?
Difference between a process and a program?
What is boolean flag in java?
Name some classes present in java.util.regex package.
What is the difference between throw and throws in java?
Is java good for beginners?