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

Explain representational state transfer (rest) in detail?

0 Answers  


Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?

0 Answers  


Will the finally block get executed if an exception has not occurred

1 Answers   Siebel Systems,


What is Jit compilers?.how many are available in clr

1 Answers  


What’s the advantage of using System.Text.StringBuilder over System.String?

4 Answers   IBM,


what is VSS? Where we are using?

3 Answers   TCS,


what are background threads? give ex?

3 Answers   CSC, Kanbay,


if u add an import stmt to an application u can do the same by adding reference to the apllication then what is the diff bet these two ?

1 Answers  


Which is the default http method for an action method?

0 Answers  


what is ADO.NET

8 Answers   NIIT,


what is csdl?

0 Answers   Microsoft,


What is objectset? : Entity framework

0 Answers  


Categories