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

How to perform quicksort in java?

1029


What is rule of accessibility in java?

960


What is difference between float and double?

909


How do you identify independent and dependent variables?

931


What is the use of accept () method in java?

1039


What is the java project architecture?

2182


What are the fileinputstream and fileoutputstream?

1018


What are the five major types of reference sources?

1037


What makes a function well defined?

935


How java enabled high performance?

1001


What is a finally block? Is there a case when finally will not execute?

985


How does a for loop work java?

982


Difference between abstract and concrete class ?

1072


Can you tell me range of byte?

942


Can a static class have a constructor?

962