What is the use of finalize and dispose eventhough garbage
collector is working?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
i have done enough testing in life but now stated developing intereset in development work,Can i think of entering into development work that too in >Net after more then 4 years of testing experiece?
What does 'managed' mean in the .NET context
what is explicit loading?
What are ajax helpers in asp.net mvc?
What is side-by-side execution? Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables
explain how you can load related entities in ef (entity framework)?
WHICH IS MORE SECURED AMONG JAVA AND .NET?
What is .net framwork? what is web application? what is CLR? How does work CLR & wht is work of CLR? What is compile? wht is thread? what does use in .net?
When was the first version of .NET released
What is entitytypes? : Entity framework
What is partialview in asp.net mvc?
I am confusing about reflection.can any one tell about REFLECTION with example?