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


Please Help Members By Posting Answers For Below Questions

What is custom attribute? How to create?

547


What are the different types of events are occured when a client requests an ASP.NET page from IIS server?

588


What is the use of placeholder control?

554


How do you sign out from forms authentication?

559


Is global asax mandatory?

559






What symbol would you use to denote, the start of a code block in aspx views?

579


How you can stop the validation of ASP.NET controls from client side?

532


What are the page life cycle events?

504


What is difference between ispostback and autopostback in asp net?

524


What is ASLM?

689


How to reduce the width of textbox in editcommandcolumn of datagrid?

537


6. Tell us about a time when you failed to meet a deadline. What were the repercussions?

1735


Explain the different parts that constitute ASP.NET application?

571


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?

534


How to prevent client side validation from the ASP.NET validation controls?

581