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
Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc
What are httphandlers and httpmodules and difference between them?
Differentiate between file-based dependency and key-based dependency.
What is form method?
How to prevent client side validation from the ASP.NET validation controls?
Explain the difference between inline and code behind - which is best in?
What is the appSettings Section in the web.config file?
What is asp net objects?
In the Repeater control which way you can edit?
How can we pass info between 2 asp.net pages?
What is the difference between application state and session state in asp net?
What is query string? What are its advantages and limitations?
Who can consume WebAPI?
Explain the difference between value type and reference type?
What is the difference between client-side and server-side validations in ASP.NET?