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

Answer Posted / nitin kumar

Dispose() Method is used to release Unmanage Resources.
When Unmanage Resources are no longer in use and Referenced
and is called Manually.


and

Finalize() Method is similar to Dispose Method But it is
called by the Garbage Collector.

Is This Answer Correct ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of session state and application state and difference between them?

473


What is the good practice to implement validations in aspx page?

624


What is the use of express session?

527


Which method do you use to enforce garbage collection in .net?

510


Explain what is viewstate?

541






Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net

1495


Can a .net web application consume java web service?

504


Write a code for passing ArrayList in Web API?

1047


What describes a query?

514


What are the new navigation controls in asp.net 2.0?

530


What is the use of autowireup in asp.net?

552


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

1540


What is aspect-oriented programming?

534


Which asp.net objects encapsulate the state of the client and the browser?

560


What are validators and list some validators of asp.net?

534