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 client-side and server-side validations in ASP.NET?
Which is an advantage of application service providers?
What are the advantages of the code-behind feature?
Which class is used to send an email message from an ASP.NET Web page?
Difference between singleton and singlecall.
How can we prepairing Interview
How can we update records in gridview?Is there any appropriate code for it?
What is Web API?
What are the different authentication modes in asp.net?
What is the difference between cache and cookies?
Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc
What is the use of ASP.NET routing?
How Can assign alias name for ASP.NET Web API Action?
What are server-side comments in ASP.NET?
What is difference between URL and URI?