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 page life cycle?

535


explain how you can load related entities in ef (entity framework)?

552


What is domain class model?

526


What are the Core features of ASP.NET MVC?

609


Why to use Html.Partial in ASP.Net MVC?

617






What are actions in asp.net mvc?

587


What is the difference between .net core and .net framework?

504


What is the difference between entity framework and mvc?

530


Explain how you can send the result back in JSON format in MVC?

591


mention what is the key advantage of using entity framework or ef?

563


How to change the action name in mvc?

559


explain what does .edmx file contains?

649


Is entity framework slow?

546


What are scaffold templates in mvc?

595


How to change the action name in ASP.Net MVC?

584