Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Explain pass by reference and pass by value?

Answer Posted / chinmay

passing the value instead of reference is known as pass by value,here primitive data should be given...
now pass by reference
Demo d=new Demo("abc");
Demo c=b;
here we pass the reference instead of value..
it is called pass by reference

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between class#getinstance() and new operator ?

1203


How arrays are stored in memory in java?

973


What is the maximum size of hashmap in java?

994


What is getkey () in java?

1004


What are daemon Threads in java?

1192


Differentiate between stringbuffer and string?

1023


What is a protected method?

1135


What is array length?

966


What are basic keywords?

1037


Explain creating threads by extending thread class ?

1052


What is the old name of java?

988


Explain when we should make an instance variable private.

1108


In java, what is the difference between method overloading and method overriding?

1114


Can sleep() method causes another thread to sleep?

1036


Is finalize() similar to a destructor?

1020