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...

suppose we have two object;obj1 and obj2
can we assign obj2 to one1;
and if yes; then after assigning suppose we delete obj2
then obj1 will retain obj2 value or not.

Answer Posted / masthan

see this example
parentclass obj1=new parentclass();
childclass obj2=obj1;//assign object to the reference of
childclass.here both obj1 and obj2 refer same memory
location.
obj1=null;//here obj1 losts the memory
console.write(obj2);//it refers same memory location

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what the contents of cookie?

1060


What is difference between asp.net and asp?

1040


What are the events in a page life cycle?

946


Disable browser cache for entire ASP.NET website?

1213


Why should i prefer JSP over asp.net or any other web development language..??

1993


How does u call and execute a sp in .net?

992


What is asp according to you?

1031


Can you explain architecture of your project ?

1121


Can we override the enablepartialrendering property of the scriptmanager class?

1120


What is the displayafter property in updateprogress control?

971


What is http post and http get?

1005


Is a dll file an executable?

1031


What is advantage of code behind coding in ASP.NET?

1026


Describe how ASP.NET maintains process isolation for each Web application?

1075


What are the Types of state management techniques

1029