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 is managed code?

977


if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?

984


Explain the difference between pass by value and pass by reference.

902


How do you escape in c#?

880


Wcf and what is difference between wcf and web services?

883


What is the difference between const and readonly in c#.net?

890


What is inline function in c#?

914


Explain the various types of classes used in c#?

882


What does protected internal access modifier mean?

1031


Why do we use parameters in c#?

903


HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only

900


what are some characteristics of an array?

895


What is cookies in c# asp net?

880


Why do we need escape characters?

833


Can we have 2 main methods in c#?

856