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


Please Help Members By Posting Answers For Below Questions

When can you say a graph to be a tree?

637


What are advantages of exception handling in java?

588


What is binary search in java?

559


How many bytes is string in java?

611


What does snprintf return?

552






Why spring singleton is not thread safe?

569


Can a final variable be initialized in constructor?

492


What is contract between hashcode and equal method?

574


What are different types of expressions?

554


What is public static void main?

571


What is the program compilation process?

586


What is the purpose of final keyword and when to use it?

528


What is the difference between the final method and abstract method?

542


What is difference between float and double?

505


what is the difference between yielding and sleeping? : Java thread

525