How to free the memory that is not used by an object in
garbage collection?

Answers were Sorted based on User's Feedback



How to free the memory that is not used by an object in garbage collection?..

Answer / venky

Garbage collection is automatic system we not need to call garbage collector manually...

Is This Answer Correct ?    13 Yes 2 No

How to free the memory that is not used by an object in garbage collection?..

Answer / magesh

Garbage collection is automatic system, But it's take time
remove the object. You dispose the object when you work
heavy large application.

Is This Answer Correct ?    7 Yes 0 No

How to free the memory that is not used by an object in garbage collection?..

Answer / srinivas

in garbage collection,heap is divided into
generations,g1,g2,g3.all available objects stored in g1,if
g1 is full,then garbage collector performs the collection
process,in that fist identify the ideal object and used
objects,second delete the used objects and ideal objects are
put in to finalization queue,and then use genarations.

then we get free memory in garbage collection

Is This Answer Correct ?    5 Yes 0 No

How to free the memory that is not used by an object in garbage collection?..

Answer / avinash

Using "GC.Collect();" unused objects can be removed.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More Dot Net Framework Interview Questions

exe abrevatiom

5 Answers   IBM,


What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?

0 Answers  


Explain Sections is ASP.Net MVC?

0 Answers  


What is Reflection in .NET?

6 Answers   Fiserv, TCS,


what is .edmx file and what it contains?

0 Answers   Microsoft,






What is ado.net data provider? : Entity framework

0 Answers  


How do you sort a dataset?

2 Answers  


Where does web.config info stored? Will this be stored in the registry ?

1 Answers   Accenture, BirlaSoft,


About DTS package ?

1 Answers   Accenture, Grafotech,


How to change the action name in mvc?

0 Answers  


im software developer (.net). i goth1b (usa )appointment 30th of this month . chennai people asking responsbilities .can anyone wht responsbilities i need say . plz help me

2 Answers  


Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?

0 Answers  


Categories