Explain pass by reference and pass by value?
Answer Posted / vikas
Pass-by-value means, Passing a copy of the value.
Pass-by-reference means, instead of passing the actual
value, the address(of the value) is passed.
Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
What is flush buffer?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
What is jar?
What is meant by interface?
What is the main functionality of the remote reference layer?
Can we restart a dead thread in java?
What are the two ways in which thread can be created?
What is casting in java programming?
What are the types of inner classes (non-static nested class) used in java?
What is constructor and virtual function? Can we call a virtual function in a constructor?
What is an object's lock and which object's have locks in java programming?
What is comparable and comparator interface? List their differences
How to read and write image from a file ?
What is heterogeneous in java?