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

What is CardLayout?

1 Answers   Infosys,


What are batch updates. in jdbc

2 Answers   Corent Technology,


How can we make a class singleton?

0 Answers  


What is the difference between length and size in java?

0 Answers  


can java object be locked down for exclusive use by a given thread? : Java thread

0 Answers  






what are the methods in object?

0 Answers   IBS,


what is the use of clone method? why user cant overwrite in sub class without its proper defination.

2 Answers   TCS,


what is tempplate pattern

4 Answers   IBM, RBS,


Why string is immutable with example?

0 Answers  


What is the meaning of I ++ in java?

0 Answers  


What is singleton pattern?

0 Answers  


What are streams in java 8?

0 Answers  


Categories