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

Answer Posted / vivek jagga

The GC call the Finalize() function automatically to destroy
the object called implicit destroy. when you want to destroy
a objects that you think no longer need and free it from
memory, then we will use the dispose function. For better
performance we will use the dispose function explicitly.

Is This Answer Correct ?    21 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we are using mvc instead of asp.net? : Asp.Net MVC

523


What is a windows service?

560


What is the difference between union and structure?

507


What is event bubbling?

608


What is difference between or and orelse?

551






Define the term Web Garden?

554


How to implement globalization and localization in the use interface in .net.

538


Explain the difference between an exe and a dll?

532


What is custom events? How to create it?

627


What is web configuration file and how to use in web application

595


What is a 307 redirect?

511


What's the ASP.Net Application life cycle?

566


Why asp.net mvc is better than asp.net? : Asp.Net MVC

501


What is base class of button control in .net?

531


What is .net framework and what are the main components of it?

376