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

What are Types of assemblies that can be created in dotnet

1031


What are winforms in c#?

922


What is difference between an reference type and value type in C#?

1049


Can firstordefault return null?

937


What are the Types of assemblies that can be created in dotnet

1153


What is before string in c#?

923


What does get set mean in c#?

919


What are the 3 different types of arrays?

1028


Explain how to use an extender provider in the project.

975


What is string method in c#?

917


What are partial classes and use of partial classes?

947


Explain the types of assemblies in .net?

952


What is string class in c#?

888


What is difference between private and static constructor?

915


What is ulong in c#?

1028