What is meant by pass by reference and pass by value in java?



What is meant by pass by reference and pass by value in java?..

Answer / Swati Sharma

In Java, there is no pass by reference. However, it uses pass by value for both primitive types (passed as their actual values) and objects (passed as the object's memory address).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Java Related AllOther Interview Questions

Who created eclipse?

1 Answers  


What does jpa mean?

1 Answers  


How do I export a java project?

1 Answers  


ioc vs dependency injection?

1 Answers  


How do you create a jar file?

1 Answers  


What is the use of servlet in java?

1 Answers  


What is the java virtual machine (jvm)?

1 Answers  


What is servlets.

10 Answers   HCL, Infosys,


What happens if javac is not recognized?

1 Answers  


What is meant by annotations in java?

1 Answers  


What if I write static public void instead of public static void?

0 Answers  


Is lambda expression an object?

1 Answers  


Categories