Explain pass by reference and pass by value?
Answer Posted / aravind
Pass By Reference:
Passing the reference of the variable or object. In java
objects are passed by reference.
Pass By Value:
Passing the copy of the value. In java primitives are
passed by value.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Difference between object instantiation and construction ?
What is default locale java?
How to perform bubble sort in java?
Can we overload final method in java?
Is arraylist a class in java?
Why scanner is used in java?
What are the restriction imposed on a static method or a static block of code?
What is an iterator java?
How many arguments can a method have java?
what state does a thread enter when it terminates its processing? : Java thread
What is data member in java?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
What is * argv?
What are the benefits of immutable objects?
What is the order of arraylist in java?