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

What is attribute routing in mvc?

0 Answers  


What is RouteConfig.cs in ASP.Net MVC 4?

0 Answers  


What is MSIL, IL, CTS?

13 Answers  


Which is the root namespace for fundamental types in .net framework?

0 Answers  


How many .NET languages can a single .NET DLL contain

1 Answers  






What is difference between constants, readonly and, static

1 Answers  


Explain the new features 3.5 framework against with the tool?

0 Answers  


What is viewdata?

0 Answers  


How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?

0 Answers  


mention what is csdl, ssdl and msl sections in an edmx file?

0 Answers   Microsoft,


How we can call a javascript function on the change of a dropdown list in mvc?

0 Answers  


What is the use of finalize and dispose eventhough garbage collector is working?

3 Answers   Kanbay,


Categories