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 serial version uid and its importance in java?
What are recursive functions? Give some examples?
Why java strings are immutable in nature?
What is byte [] in java?
Why can't we use static class instead of singleton?
What is difference between filereader and bufferedreader?
What are different access specifiers in java?
What is method overloading with type promotion?
What is a bufferedreader?
Explain about transient variables in java?
Explain when noclassdeffounderror will be raised ?
What are exception handling keywords in java?
What is compareto?
How many return statement are allowed in a function?
What is bifunction in java?