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

Answer Posted / rajkumar

If we want to delete resources(objects) those are not using,
u should not worry about that GC implicit y call Finalize()
method and remove all such object but if u want to delete
object forcefully(The large obj u want to delete after
completely task) then u can explicity call Dipose() method.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In which event of the page life cycle, is the viewstate available?

522


Explain ViewState?

578


How could you modify xaml content from javascript?

506


What is inproc mode in session?

506


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

372






What is voluum?

538


What is application variable?

515


What is the difference between session object and application object?

589


How do u deploy ur project?

2218


How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?

628


When does a session actually start?

565


Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?

536


Are cookies client side or server side?

494


How do I open an ashx file?

536


what is loosely coupled solution? How it can be used?

564