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
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?
Explain how asp.net different from asp?
How to comment out asp.net tags?
If we remove web.config or machine.config from the application then, is this application will works?
what are the ihttphandler and ihttphandlerfactory interfaces ?
Web API supports which protocol?
When does a session actually start?
What are the disadvantages of asp.net?
What's the difference between viewstate and sessionstate?
I have an external link in my application say www.xyztest.com. Today this site works on http protocal. Tommorow it may run on https. So i cant hardcore the protocal in the site. When a user clicks on the link how can i know if the external site works on http or https and takes him to that place?
How many types of triggers are there in update panel?
What is the difference between a multi-layer and multi-tier applications?
What is the difference between user control and custom control?
What are the advantages and limitations of query string?
What are html helpers in asp.net?