Tell me about the internal working of Garbage collector?

Answer Posted / kanth

The main objective of GC is Memory Management....
Gc wil take initiative when ever the application meemory is
low...we hav Finalize() method which runs implicitly...and
Dispose() method which we hav to kal Explicity....

Gc identifies the unused objects with reference counting
concept.
Finalize() method runs implicitly and free the resources if
the object havin no references...in the case of Dispose()
method it wont mind if the reference r ther.....

Gc maintain 4 Generation...start with 0 ..ends with 3
if GC released the resources using
Finalize method() still u can get the object..coz dis
method havin backup...it stores in generation0-3

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can register the Area in ASP.Net MVC?

844


Explain covariance and contra-variance in .net framework 4.0. Give an example for each.

767


Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?

753


What is the difference between viewbag and viewdata in asp.net mvc?

836


explain what is ado.net entity framework?

759


How can I tell what .net framework is installed?

700


How does .net framework works?

724


Explain bundle.config in mvc4?

849


Can you use Razor code in Javascript in ASP.Net MVC?

860


What is entity framework used for?

735


What is entitycontainer? : Entity framework

766


What are the advantages of razor view engine?

697


Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?

776


what is entityclient?

857


What are html helpers in asp.net mvc?

751