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

Why do we use sessions?

1064


Explain the asp.net mvc request life cycle? : asp.net mvc

1098


What are validator? Name the validation controls in asp.net?

1064


What is asp.net and its advantages?

1025


What is the compiled object?

2133


Define a web service in .net?

1118


How do I know asp.net mvc version? : Asp.Net MVC

1098


What is sdlc process?

1051


What is considered a service provider?

999


Explain diff. Between friend and protected friend?

989


Explain security types in asp.net?

1156


Explain the function of new view engine in asp.net? : asp.net mvc

1075


What is routing in MVC?

1079


Explain how dot net compiled code will become platform independent?

1037


Explain how cookies work. Give an example of cookie abuse.

1177