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

What is the difference between heap memory and stack memory?

1073


What is the differences between c++ and java? Explain

1045


Why super is first line in java?

1056


a thread is runnable, how does that work? : Java thread

1013


How do you delete a list in java?

950


What is the best way to findout the time/memory consuming process?

1032


is it possible to instantiate the math class?

1034


'A class is a template for an object' explain this statement.

1056


Explain the importance of throws keyword in java?

999


What is variable explain with example?

1062


What are inbuilt functions?

991


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

1071


How do you read a char in java?

1025


Explain about strings in java?

1072


Can list be null in java?

1037