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

How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?

0 Answers  


what is way of loading data in ef (entity framework)?

0 Answers   Microsoft,


What is definingquery in entity framework? : Entity framework

0 Answers  


What is stateless model?

0 Answers  


can i change web.config settings from iis?

1 Answers   HCL, ReadySoft, Wipro,






Where is tempdata stored?

0 Answers  


What is the difference between STA and MTA?

3 Answers  


What is Partial Assembly References?

3 Answers   Microsoft,


What is the .net framework?

0 Answers  


How to ensure the credentials for WebService using Windows authentication

1 Answers   Proteans,


What are Action Filters in ASP.NET MVC and its use?

0 Answers  


What is boxing and unboxing?

4 Answers   Kanbay, TCS,


Categories