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
How do you use equal in java?
What are encapsulation, inheritance and polymorphism?
What do you mean by buffering?
Why we use methods in java?
Can you add null to a list java?
Can substring create new object?
What if I write static public void instead of public static void in java?
What are recursive functions? Give some examples?
Difference between abstract and concrete class ?
Differences between traditional programming language and object oriented programming language?
What is a memory leak in java?
How we can run a jar file through command prompt in java?
Why main function is static?
Difference between Linked list and Queue?
What is the current version of java?