How many ways can an argument be passed to a subroutine?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / vijayakumar chinnasamy
In java the arguments are passed by pass by value . Using
this pass by value way u can pass both primitive and object
type values.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / 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 |
what is object slice?
Does java support Operator Overloading?
Why is inheritance used in java?
Explain method overloading?
What is class and its types?
what is Remote Reference Layer ?
How do you create a bulleted list?
What is annotation in java?
How many decimal places is a double?
Does constructor return any value?
What is finalize method?
WHAT IS MARKER INTERFACE,AND NO METHODS IS NOT THERE ON THAT INTERFACE THEN WHY WE USED IN JAVA?