what is garbage collection?

Answers were Sorted based on User's Feedback



what is garbage collection?..

Answer / stanly jose

Ofcourse, Garbage Collection is done for the memory
utilization (making use of memory space which is allocated
to the unused objects).
And this Garbage Collection is autometically done by the
CLR. Still we can also implicity for the CLR to collect the
unused memory allocated to unused objects. But that is not
at all necessary.

When a program is loaded into memory, it is organized into
three areas of memory, called segments: the text segment,
stack segment, and heap segment.
So the compiled code will reside in the text segment.
the variables like string, int ect..(value types) will
reside in stack segment.
the objects like class(reference type) will reside in the
heap segment.
So when a new object is created the Garbage Collector will
look unused objects and it will free them from the heap. so
that the new object can reuse the memory allocated to the
unused object.

Is This Answer Correct ?    8 Yes 0 No

what is garbage collection?..

Answer / ganni

garbage collection is the process of clearing the memory of
unused objects, which will be taken care by CLR on
periodical basis.

Is This Answer Correct ?    4 Yes 0 No

what is garbage collection?..

Answer / thirushakar

It is use to free the memory of the object r method in use.

Is This Answer Correct ?    3 Yes 0 No

what is garbage collection?..

Answer / kalidoss

Actually the new operater is used to allocate the memory to
an object that object not needed for longtime,so that
objects are thrown away or release from the memory by the
garbage collector.

Is This Answer Correct ?    1 Yes 0 No

what is garbage collection?..

Answer / jiten

it is clr function
it is use to release those objext whitc is not longer useor
no longer refeances in application

it is System.GC.Collaction

Is This Answer Correct ?    1 Yes 1 No

what is garbage collection?..

Answer / mahesh babu ummaneni

GARBAGE COLLECTER IS NOTHING BUT,USING GARBAGE COLLECTOR FREE THE WASTE MEMORY.GARBAGE COLLECTOR IS UNDER THE CLR.IT IS MANAGING THE MEMORY

Is This Answer Correct ?    0 Yes 0 No

what is garbage collection?..

Answer / kirti

Garbage collection is a system whereby a run-time component takes responsibility for managing the lifetime of objects and the heap memory that they occupy. This concept is not new to .NET - Java and many other languages/runtimes have used garbage collection for some time.

Is This Answer Correct ?    0 Yes 0 No

what is garbage collection?..

Answer / kvs

leakage memory of unused and unreferenced objects

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Sharp Interview Questions

What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?

0 Answers  


What is lock statement in C#?

0 Answers   B-Ways TecnoSoft,


What are the ways to deploy an assembly?

3 Answers  


WHAT IS THE EXACT USE OF INTERFACE(DONT TELL USE FOR MULTIPLE INHERITANCE)

5 Answers   eXensys,


What is delegates and events?

0 Answers  






Contrast DTDs versus XSDs. What are their similarities and differences? Which is preferred and why ?

1 Answers  


What is integer c#?

0 Answers  


how to handle errors in sqlserver

1 Answers  


what's the Difference between DataView and DataTable?

10 Answers  


What is Dependency of Injection?

0 Answers  


can we create an empty interface with no definitions? If so, how it should be called in the class?

3 Answers   IBM,


Explain synchronous and asynchronous operations?

0 Answers  


Categories