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


Please Help Members By Posting Answers For Below Questions

What is serial version uid and its importance in java?

602


What are recursive functions? Give some examples?

621


Why java strings are immutable in nature?

596


What is byte [] in java?

542


Why can't we use static class instead of singleton?

503






What is difference between filereader and bufferedreader?

537


What are different access specifiers in java?

571


What is method overloading with type promotion?

581


What is a bufferedreader?

529


Explain about transient variables in java?

649


Explain when noclassdeffounderror will be raised ?

622


What are exception handling keywords in java?

613


What is compareto?

546


How many return statement are allowed in a function?

462


What is bifunction in java?

682