Explain pass by reference and pass by value?

Answer Posted / aravind

Pass By Reference:
Passing the reference of the variable or object. In java
objects are passed by reference.

Pass By Value:
Passing the copy of the value. In java primitives are
passed by value.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between char array and string?

800


Is null keyword in java?

738


What is the size of an array?

778


How will you get the platform dependent values like line separator, path separator, etc., ?

804


what is difference between equals and ==?

815


Why bytecode is called bytecode?

828


Does java linked list allow duplicates?

754


What is oop in java?

733


Explain, java is compatible with all servers but not all browsers?

829


What is difference between Heap and Stack Memory?

759


Can we sort list in java?

806


What is meant by overloading?

824


What is a control variable example?

773


Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain

1691


Can constructor be inherited?

808