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 is CLR? How it will work?
Can I add mvc testcases in visual studio express?
What you mean by routing in asp.net mvc?
How does the .net framework 3.0 relate to windows vista?
how do you truncate a table using entity data model?
How to Insert a TextBox value in to Sql database using C#.Net coding
What are the 2 popular asp.net mvc view engines?
Describe the .net framework architecture.
What are the Core features of ASP.NET MVC?
Is razor a server side?
What is the .net framework and how does it work?
When do you absolutely have to declare a class as abstract