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

How do I publish my asp.net application to my isp's web server?

602


What are server-side comments in ASP.NET?

555


What is difference between abstract class and an interface?

513


Define what is razor? : asp.net mvc

587


Which object wraps the state or data of a user?

557






What are tuples?

552


Explain server side state management system.

555


Explain the Session state management options available with ASP.NET?

578


How do sessions work?

546


Describe SOA and the tenets of it?

573


Explain the steps needed to be performed in order to create an animation in xaml?

566


Differentiate the session object and application object?

546


What is session state server?

629


Can we have multiple web config files for an asp.net application?

548


In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?

662