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

Why do we use struct in c#?

924


Can constructor have return type c#?

978


What is binding in c#?

854


What is the components of window?

860


Why singleton class is sealed?

888


What is .cs file in c#?

870


What is generic collection in c#?

887


Explain the difference between “as” and “is” operators used in c#?

916


What is inumerable?

975


Can struct have constructor c#?

868


What is the difference between method and function in c#?

870


What are the advantages of using delegates in c#?

871


How to find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?

885


What is the console on a mac?

876


What is meant by collections in c#?

806