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
What is a local class in java?
Can a lock be acquired on a class in java programming?
How can we make a class singleton?
What is stream api in java8?
What is the different types of functions?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
what r advatages of websphere? & how to deploy?
What is prime number in java?
What is fundamental datatype?
What occurs when an object is constructed?
What is functional interface in javatpoint?
Which is easier .net or java?
What is the purpose of the main method?
How do you use nextline in java?
what is meant wrapper classes?