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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is partialview in asp.net mvc?

594


What is net framework 3.0 ?

593


Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).

1800


What is RouteConfig.cs in ASP.Net MVC 4?

576


Is it possible to combine asp.net webforms and asp.mvc and develop a single web application?

541






What does a viewmodel do?

523


Is it possible to create a custom filter?

562


What is layout in mvc?

565


What is filters in web api?

509


What is the role of the jit compiler in .net framework?

628


what is explicit loading?

636


what is more complex to implement property, methods or event? how can I define criteria to compare the difficulty of implementation between them? for example the number of methods wanted to implements property is 2 methods. how many methods I need it to implements events?

1690


Which .net framework is installed?

505


What is domain class model?

515


What are the Core features of ASP.NET MVC?

599