Difference between Dispose and Finalize method



Difference between Dispose and Finalize method..

Answer / kirti

Finalize method is used to free the memory used by some unmanaged resources like window handles (HWND). It's similar to the destructor syntax in C#. The GC calls this method when it founds no more references to the object. But, In some cases we may need release the memory used by the resources explicitely.To release the memory explicitly we need to implement the Dispose method of IDisposable interface.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

will there be any issues adding a table without primary keys to a data model?

0 Answers   Microsoft,


How you deploy .NET assemblies

1 Answers  


What is layout in mvc?

0 Answers  


How can you prevent your class to be inherated further

1 Answers  


what is a round trip?What is a postback?

4 Answers   Bosch, ONOTech,






Where is the new functionality in the .net framework 3.0 (such as wcf, wf, wpf, and cardspace) installed to? Is that different from where the .net framework 2.0 is installed to?

0 Answers  


Does .NET Framework support SAX?

0 Answers   Wipro,


What is namespace used for loading assemblies at run time and name the methods?

2 Answers  


What is "out" parameter how it is used in methods?

6 Answers   Polaris,


What is CLR? How it will work?

5 Answers  


Mention what is the difference between “ActionResult” and “ViewResult” ?

0 Answers  


What is edm designer? : Entity framework

0 Answers  


Categories