What is the Difference B/W Finalize() and Dispose() in .Net?
Answer Posted / m.sivakumar
Dispose() is called by as an indication for an object to release any unmanaged resources it has held.
Finalize() is used for the same purpose as dispose however finalize doesn’t assure the garbage collection of an object.
Dispose() operates determinalistically due to which it is generally preferred.
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is custom attribute? How to create?
What are the different types of events are occured when a client requests an ASP.NET page from IIS server?
What is the use of placeholder control?
How do you sign out from forms authentication?
Is global asax mandatory?
What symbol would you use to denote, the start of a code block in aspx views?
How you can stop the validation of ASP.NET controls from client side?
What are the page life cycle events?
What is difference between ispostback and autopostback in asp net?
What is ASLM?
How to reduce the width of textbox in editcommandcolumn of datagrid?
6. Tell us about a time when you failed to meet a deadline. What were the repercussions?
Explain the different parts that constitute ASP.NET application?
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 to prevent client side validation from the ASP.NET validation controls?