How many ways can an argument be passed to a subroutine?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Why does java have two ways to create child threads?
Which java collection does not allow null?
How do you remove an element from an arraylist in java?
what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread
Explain the difference between an object-oriented programming language and object-based programming language?
When is an object subject to garbage collection?
Discuss 2D arrays.
How do you create immutable object in java?
What is thread life cycle?
Which java version is latest?
Write a program in java to create a doubly linked list containing n nodes.
What are the approaches that you will follow for making a program very efficient?