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 |
How to create an interface?
How can a class be accessed, If no access modifiers are declared?
What are the advantages of user defined functions?
What class allows you to read objects directly from a stream in java programming?
What is difference between static class and normal class?
What is difference between hashset and hashmap?
How to reduce flicking in animation?
Have you worked on bits programming? examples?What is bit? How many bits are there in the byte?
Does list allow duplicates in java?
What does singleton class mean?
strings in java are objects.why?
What is the ==?