Explain pass by reference and pass by value?

Answer Posted / harsha

Passing the address itself rather than passing the value is
called ?Pass By Reference? and Passing a copy of the value
to be passed is called as ?Pass by Value?.

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an abstract class and what is it’s purpose?

541


Can an interface have a constructor?

518


What are the types of exceptions?

598


Explain enumeration in java?

573


Can we make the abstract methods static in java?

593






How java uses the string and stringbuffer classes?

518


What is a singleton class in Java?

514


What is main string [] args?

524


What is the difference between jdk, jre, and jvm?

576


what is comparable and comparator interface?

582


What is a parameter used for?

522


Why do I need to declare the type of a variable in java?

568


Can we force the garbage collection to run?

540


Can a class have 2 constructors?

504


Is age a discrete variable?

529