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


Please Help Members By Posting Answers For Below Questions

What is a local class in java?

589


Can a lock be acquired on a class in java programming?

536


How can we make a class singleton?

582


What is stream api in java8?

540


What is the different types of functions?

563






Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

510


what r advatages of websphere? & how to deploy?

1640


What is prime number in java?

539


What is fundamental datatype?

531


What occurs when an object is constructed?

575


What is functional interface in javatpoint?

516


Which is easier .net or java?

654


What is the purpose of the main method?

545


How do you use nextline in java?

509


what is meant wrapper classes?

612