How to free the memory that is not used by an object in
garbage collection?
Answers were Sorted based on User's Feedback
Answer / venky
Garbage collection is automatic system we not need to call garbage collector manually...
| Is This Answer Correct ? | 13 Yes | 2 No |
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 |
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 |
Answer / avinash
Using "GC.Collect();" unused objects can be removed.
| Is This Answer Correct ? | 5 Yes | 1 No |
Is .net core replacing .net framework?
What is GC (Garbage Collection) and how it works
Explain test driven development (tdd) ?
what is view state
If Controller is not there in MVC Pattern what happens?
what is explicit loading?
what is a mvc in asp.net?
3 Answers Cap Gemini, Elsinoir Technologies, HCL,
Explain the role of assembly in the .net framework.
What is shared and private assembly ?
3 Answers Accenture, BirlaSoft,
What is "out" parameter how it is used in methods?
How do you enforce garbage collection in .NET
will this code works fine? or will it gives error? Object obj=5; int i=6; i=i+obj;