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
What is the difference between application state and session state in asp net?
What is protected configuration?
In which event are the controls fully loaded?
What is redirecting behavior?
What is a query string in a url?
Will session work if cookies is disabled?
Which library is used by the testers and developers to develop automated tests and create testing tools?
Describe the differences between the lifecycles of Windows services and Standard EXE?
Where sessions are stored in asp.net?
How many types of sessions in asp.net?
Can any body provide me the sample web application in asp.net
Explain how to prepare culture-specific formatting in .net.
What is Forms Authentication in ASP.NET?
What is the function used for removing an event listener?
How do I force the dispose method to be called automatically, as clients can forget to call dispose method?