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 |
What are the difference between asynchronous controller implementation between asp.net mvc 3 & asp.net mvc 4?
How does CAS work
what are background threads? give ex?
Explain two instances where routing is not implemented or required?
About DTS package ?
1 Answers Accenture, Grafotech,
How can you prevent your class to be inherated further
What does CLR do after the IL is generated and machine language is generated .Will it look for main method ?
What is the use of the default route {resource}.axd/{*pathinfo} ?
My organization went through the approval process of supporting the .net framework 2.0 in production. Do we need to go through the same process all over again for the .net framework 3.0? Do I need to do any application compatibility testing for my .net framework 2.0 applications?
Which is the best institute for .net?
Explain what is routing?
Does windows 10 need .net framework?