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 difference between ado.net and classic ado?

0 Answers   Microsoft,


What is .net architecture?

0 Answers  


Does razor engine supports for tdd?

0 Answers  


Is the lack of deterministic destruction in .NET a problem

1 Answers  


What are the new features 3.5 framework against with the tool?

0 Answers  






What are the difference between asynchronous controller implementation between asp.net mvc 3 & asp.net mvc 4?

0 Answers  


What is the mvc pattern (model view controller pattern)?

0 Answers  


Does the .NET Framework have in-built support for serialization?

2 Answers  


Where are the routing rules defined in an asp.net mvc application?

0 Answers  


what is view state

3 Answers   Wipro,


What are the advantages of asp.net mvc?

0 Answers  


what is eager loading?

0 Answers   Microsoft,


Categories