Tell me about the internal working of Garbage collector?

Answers were Sorted based on User's Feedback



Tell me about the internal working of Garbage collector?..

Answer / 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

Tell me about the internal working of Garbage collector?..

Answer / sri

Internally GC Frees the memory means The objects which are
not used from long time onwords it delets the objects and
frees the memory to place the new objects which are going
to be used.

Is This Answer Correct ?    3 Yes 0 No

Tell me about the internal working of Garbage collector?..

Answer / mahesh kotekar

GC = Garbage Collector. Its non-deterministic process. When
there are no references to an object and when the system
memory is too low. Then GC runs to deallocate those memory
for non refernced objects. It also moves objects from one
memory allocation to another.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Framework Interview Questions

How to return the JSON from action method in ASP.Net MVC?

0 Answers  


Explain Bundle.Config in ASP.Net MVC4?

0 Answers  


What is html.renderpartial?

0 Answers  


What is model first? : Entity framework

0 Answers  


Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables?

1 Answers  






What is the difference between ViewData, ViewBag and TempData?

0 Answers   Wipro,


What is the use .Glimpse in ASP.Net MVC

0 Answers   B-Ways TecnoSoft,


what is client wins and store wins mode in entity framework concurrency?

0 Answers   Microsoft,


I have interview in accenture.I cleared 1st round in techniqual.I have interview with project lead.pls help me.

2 Answers   Accenture,


What data type should you use if you want an 8-bit value that's signed ?

1 Answers  


i just want to write an exam regarding .net?plz give me information about taking a test?where to pay 4 d exam,exam centre?

0 Answers  


I am confusing about reflection.can any one tell about REFLECTION with example?

1 Answers   TCS,


Categories