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
Why is global asax is used?
What is the purpose of url encoding?
What are validator? Name the validation controls in asp.net? How do you disable them? 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?
How does session state work in asp.net?
What language is asp.net written in?
Is asp.net different from asp? If yes, explain how?
What is custom events? How to create it?
What are the best practices to follow to secure connection strings in an ASP.NET web application?
Difference between singleton and singlecall.
What is the purpose of App_Code folder in ASP.NET? Why we this?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
What are the modes of updation in an updatepanel?
What is the asp.net mvc folder conventions? : asp.net mvc
Can we add code files of different languages in app_code folder?
Define caching.