How many ways can an argument be passed to a subroutine?

Answers were Sorted based on User's Feedback



How many ways can an argument be passed to a subroutine?..

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

How many ways can an argument be passed to a subroutine?..

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

How many ways can an argument be passed to a subroutine?..

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

Post New Answer

More Core Java Interview Questions

Define linked list and its features with signature?

0 Answers  


where can we get jAVA project orientation traing in HYDERABD

0 Answers  


Why string is not thread safe?

0 Answers  


What is the difference between throw and throws? What is the similarity between try and throw?

2 Answers  


Explain about serializable interface in java?

0 Answers  






What is the multi-catch block in java?

0 Answers  


Why lambda expression is used in java?

0 Answers  


What do you mean by collectors in java 8?

0 Answers  


Is it possible to instantiate the abstract class?

0 Answers  


How Array List can be Serialized.

7 Answers   Polaris,


What is boolean logic?

0 Answers  


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

0 Answers  


Categories