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 B/W Finalize() and Dispose() in .Net?

Answer Posted / rahupathi

Finalize and dispose are used to clean the objects from
memory. But Finalize will be called based on the GC. If you
finalize any object that will be moved to Finalize queaue.
When the time of the round trip of the GC. It will remove
the objects from Finlize queaue.So,it will not destroy the
object immediately. Unless dispose method will remove the
object immediatley without considering the GC.

Is This Answer Correct ?    16 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between application state and session state in asp net?

989


What is protected configuration?

1044


In which event are the controls fully loaded?

953


What is redirecting behavior?

913


What is a query string in a url?

931


Will session work if cookies is disabled?

960


Which library is used by the testers and developers to develop automated tests and create testing tools?

938


Describe the differences between the lifecycles of Windows services and Standard EXE?

1117


Where sessions are stored in asp.net?

955


How many types of sessions in asp.net?

1063


Can any body provide me the sample web application in asp.net

1908


Explain how to prepare culture-specific formatting in .net.

925


What is Forms Authentication in ASP.NET?

1010


What is the function used for removing an event listener?

973


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

879