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
When can you say a graph to be a tree?
What are advantages of exception handling in java?
What is binary search in java?
How many bytes is string in java?
What does snprintf return?
Why spring singleton is not thread safe?
Can a final variable be initialized in constructor?
What is contract between hashcode and equal method?
What are different types of expressions?
What is public static void main?
What is the program compilation process?
What is the purpose of final keyword and when to use it?
What is the difference between the final method and abstract method?
What is difference between float and double?
what is the difference between yielding and sleeping? : Java thread