What is the use of finalize and dispose eventhough garbage
collector is working?

Answers were Sorted based on User's Feedback



What is the use of finalize and dispose eventhough garbage collector is working?..

Answer / chinmay shah

We can perform finalize opertaion Immediately after
completing the work and same with dispose also while in
case of garbage collector it will dispose the object, until
it feels they are not in use.

Is This Answer Correct ?    6 Yes 2 No

What is the use of finalize and dispose eventhough garbage collector is working?..

Answer / bharani

Finalize method is actually a the destructor for the
mananged objects, but if you want to destruct an unmanaged
object dispose method allows the programmer to make
explicit calls such as destroywindow to the destruct the
unmanaged object.

Is This Answer Correct ?    3 Yes 0 No

What is the use of finalize and dispose eventhough garbage collector is working?..

Answer / chaitanya

It is advisable not to use the finalize and Dispose
methods,because garbage collector takes Care of the objects
that Should be Disposed.We should use Finalise and Dispose
methods when working with resources in the network or
working with the unmanaged code.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More Dot Net Framework Interview Questions

mention what is the key advantage of using entity framework or ef?

1 Answers   Microsoft,


What is the meaning of unobtrusive javascript?

1 Answers  


Can u tell me differences which are introduced in .Net 1.1 and 2.0 and 3.0 and also in 3.5 ? by detailed?

1 Answers   ABC,


How to set background for total website, on that another another layer, in that we keep website data,,for example see www.msn.com. On one faded background we ll have layer like other background..Do explain how its possible

2 Answers  


How big is the char ?

1 Answers  


What are non action methods in mvc?

1 Answers  


Difference between Dispose and Finalize method

1 Answers  


What is poco proxy? : Entity framework

1 Answers  


What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?

1 Answers  


What are the 3 segments of the default route, that is present in an ASP.NET MVC application?

1 Answers   NA,


Which filter executes first in an asp.net mvc application?

1 Answers  


Name a few different return types of a controller action method?

1 Answers  


Categories