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

Can we return null in java?

861


What are the differences between this and super keyword?

769


What is the generic class?

730


Explain about core java?

892


What is Major and importance difference between for and foreach loop ?

863


What is multithreading and its advantages?

844


How do you create a sop?

766


What are scalar data types?

736


Can we have two methods in a class with the same name?

840


How to find the index of the largest number in an arraylist java?

761


What are the super most classes for all the streams?

1912


What is size () in java?

863


Implement a stack with push (), pop() and min() in O(1) time.

849


Explain method overloading?

795


can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

773