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

Is it possible to write code in many languages in one asp.net project?

970


COM+ Used ________________ Isolation Level

1909


Define repository pattern in asp.net mvc? : asp.net mvc

944


Which library is used by the testers and developers to develop automated tests and create testing tools?

935


What is a 404 redirect?

996


By default, Web API sends HTTP response with which of the following status code for all uncaught exception?

1540


In ViewState How much lifespan items stored?

1013


What is considered a service provider?

899


If you want to write your own dot net language, what steps you will you take care?

986


What is the difference between web config and machine config files?

958


Can I read the hard disk serial # of the client computer using asp.net?

1010


Explain what the contents of cookie?

1004


What is the difference between page-level caching and fragment caching?

928


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

6535


Why session is necessary in web application?

913