Explain pass by reference and pass by value?

Answer Posted / dsr

The changes made in formal parameters will reflet to the
actual parameters.This is Known as pass by value.
The changes made in formal parameters will not reflet to
the actual parameters.This is Known as pass by reference.
java is completely pass by value.

Is This Answer Correct ?    1 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State the main difference between c++ and java?

598


What is difference between throw and throws ?

618


What is style and indentation?

560


explain multi-threading in java?

571


What is the difference between the paint() and repaint() methods in java programming?

642






What is the nested interface?

603


Does substring start with 0?

562


What is not object oriented programming?

517


Write the algorithm to check the number non-leaf nodes in a tree.

608


What is an infinite loop? How infinite loop is declared?

576


What is the default value of local and global variables?

575


What are constants?

609


what is optional in java 8?

575


What is a values collection view ?

689


Why multiple inheritance is not supported by java?

522