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

What is data member in java?

488


How do you initialize an arraylist in java?

496


How do you represent a space in regex java?

510


What is the implementation of destroy method in java. Is it native or java code?

463


How is a variable stored in memory?

511






What is difference between identifier and variable?

459


What is the primary benefit of encapsulation?

544


How to change the priority of thread or how to set the priority of thread?

601


What does 3 dots mean in java?

499


Define packages in java?

564


Difference between process and thread?

590


What do you mean by light weight and heavy weight components?

543


Which of the following is not an isolation level in the JDBC

1598


What does @override mean?

522


Can we have two main methods in a java class?

528