What is the Difference B/W Finalize() and Dispose() in .Net?

Answer Posted / prasanna

.NET provides "finalize" method in which clean up our
resources.but this is always not good so the best is to
implement interface and implement the "Dispose" method
where you can put your clean up routines

Is This Answer Correct ?    23 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define viewstate in .net?

546


What is Model-View-View Model?

609


Difference between web user control and web custom control?

504


Describe the Server Control Events of ASP.NET?

661


How do you store a value in viewstate and retrieve them?

568






Define dll hell?

631


What are the Types of chaching. How to implement caching

564


Explain how does asp page work?

578


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

565


What is query string? What are its advantages and limitations?

516


Explain what are webservices?

549


How many types of cookies are there in asp.net?

539


What are the steps to follow to host a web application on a web server?

591


What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?

536


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

511