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 |
Can you extend more than one interface?
What is output buffer?
What is an example of a conditional statement?
What are namespaces in java?
What happens if an exception is not handled in a program?
Which is the best way to use for String concatenation in Java?
In the below Java Program, how many objects are eligible for garbage collection?
How objects of a class are created if no constructor is defined in the class?
what is the diff between Servletcontext and servletconfig?
whats is the use of final,in which situation final can be used in the application?
use of wrapper classes?
What are the 4 types of characters?