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
Difference between throw and throws?
Difference between current previous versions of Java?
What is the vector class in java programming?
How do you sort arrays in java?
How is final different from finally and finalize?
What is immutable in java?
Does java linked list allow duplicates?
What is a top level class in java?
What are the advantages of passing this into a method instead of the current class object itself?
Is an object null?
What is a method vs function?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
What is the method to expand and collapse nodes in a jtree?
What is mvc in java?
What is method in java with example?