Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 regex replace in c#?

0 Answers  


What do u meant by "SBI" of an object?

0 Answers  


What is a method c#?

0 Answers  


How do you concatenate in c#?

0 Answers  


What is the reason behind the invention of c#?

0 Answers  


Is Facebook a desktop application?

0 Answers  


Suppose in a scenario if we want to display information only until 4.00 p.m and after that means after 4.00 p.m if any one tries to access the information it should give error mesage. Then how will you write a delegate for this ? Give coding.

1 Answers   HP, nTech Solutions, Primetech Software, PS,


can we assign null value to value type in c#?

12 Answers   Idea, Microsoft, Wipro,


what happens if you inherit multiple interfaces and they have conflicting method names?

0 Answers   Siebel Systems,


1)what is timestamp in C# (anilringole@gmail.com)

2 Answers   Wipro,


What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?

0 Answers  


Is string a data type in c#?

0 Answers  


Categories