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 / pushparaj pentakota

obj=null is remove the reference to object only but that
object will be existed but obj.dispose() is clear the
reference and as well as clear the object also from the
memory.so obj.dispose() is best to use but in some cases not.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does out mean in c#?

991


How do you comment out code in c#?

958


Give 2 scenarios where static constructors can be used?

965


What is xslt in c#?

919


What does xpath return?

1063


What is the use of expression tree in c#?

919


Can class inherit from struct c#?

1013


What is the use of the dispose method in C# ?

1023


Is there hashmap in c#?

978


What are access modifiers used for?

1142


What is data reader in c#?

1090


What is or operator in c#?

999


Who introduced c#?

919


How do I create a delegate/multicastdelegate?

1063


Can a static class have a constructor c#?

956