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
What is re-factoring in software?
What is a final class ?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
How we can declare a static variable?
How do you avoid global variables?
Which is bigger double or float?
How hashmap increases its size in java?
What is public static void main?
What is a constructor, constructor overloading in java?
Give few difference between constructor and method?
What are access specifiers in java ?
What are operators and its types?
Why heap memory is called heap?
What is the difference between a synchronized method and a synchronized block?
Explain the difference between collection api and stream api in java8?