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 is stringwriter c#?

863


What does return do in for loop?

974


What is assembly and dll in c#?

1008


What is the difference between hashtable and dictionary in c#?

968


What is type class in c#?

1091


Can you instantiate an abstract class c#?

965


What is the purpose of namespace in c#?

917


What is trim in c#?

1047


What is boolean conditions in c#?

1010


Why generics are used in c#?

999


Is there regular expression (regex) support available to c# developers?

1014


Explain the difference between .net and c#?

984


Is c# code is managed or unmanaged code?

1130


What is array formula?

954


Explain constructor in c#?

1397