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 does ASP.NET framework maps client side events to Server side events.?

541


What is difference Between Authentication and authorization?

571


i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?

1831


What is session handling in a webfarm, how it can work with its limits?

619


Define web services in asp.net.

550






What is the difference between executescalar and executenonquery?

505


Give me one example of Web API Routing?

592


What are type/key pairs in client script registration?

556


What is razor? : asp.net mvc

549


What is caching? What are different ways of caching in asp.net?

656


Explain different types of Caching techniques in ASP.NET?

543


How would you turn off cookies on one page of your website?

532


What is http response header?

550


What is the use of global.asax file?

535


What are the disadvantages of using session?

460