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
How would overload a function based on return type?
Why is stringbuffer called mutable?
Can we create an object of static class in java?
What is annotation in java?
What is java lang string?
Which data type is a class in java?
What is Mutex (Mutual Exclusion Object) ?
Can we write method inside a method in java?
What is meant by polymorphism?
How to convert string to byte array and vice versa?
Is linkedlist thread safe in java?
Explain jvm, jre, and jdk?
How do you implement singleton class?
How do you ensure that n threads can access n resources without deadlock?
What is final method?