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

What is the difference between these statements
obj=null and obj.dispose()

Answer Posted / sanjeev

obj=null
when we use obj=null then this object has existence in
memory with no any value.

obj.dispose()
when we use obj.dispose() then the clr release the memory
and there are no any existence of that object into the
memory. so it will be better to use obj.dispose()

Note:- By default it is automatically disposed by the clr
when there are no any references in the left

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is datetime a value type in c#?

890


What is the difference between asp net and c#?

925


What is entity framework in c#?

921


What are the different approaches of passing parameters to a method?

974


What is global namespace in c#?

977


What is the difference between a method and a property?

1035


What are value types in c#?

902


What Is The Difference Between The System.array.copyto() And System.array.clone()?

1025


Explain how is the dll hell problem solved in .net?

864


Define delegation in .net?

900


In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?

1128


Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?

928


Why static constructor is parameterless in c#?

1054


What is Implementation inheritance

975


Explain briefly the difference between value type and reference type?

1033