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

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

0 Answers  


How the framework differentiate between 2 version dlls? eg Version 2.0 and 2.1 dlls are there. both are referred in the code.but we are using only name of that dll not the version number. in run time how the framework know which dll has to be referred?

1 Answers   Deloitte,


How .net assemblies are registred as private and shared assembly ?

2 Answers   Infosys, MMTS,


Explain representational state transfer (rest) in detail?

0 Answers  


what are background threads? give ex?

3 Answers   CSC, Kanbay,






What is different between User Control and Web Control and Custom Control?

2 Answers  


What is .net framework used for?

0 Answers  


Define the core components of an ASP.NET MVC application?

0 Answers  


IS MS.Net platform independent or dependent?

19 Answers   Infosys, Ksb, Satyam,


What are Resource Files ? How are they used in .NET

1 Answers  


Explain the new features added in version 4 of mvc (mvc4)?

0 Answers  


Describe the .net framework architecture.

0 Answers  


Categories