What is GC (Garbage Collection) and how it works
Answer / kirti
One of the good features of the CLR is Garbage Collection, which runs in the background collecting unused object references, freeing us from having to ensure we always destroy them. In reality the time difference between you releasing the object instance and it being garbage collected is likely to be very small, since the GC is always running.
[The process of transitively tracing through all pointers to actively used objects in order to locate all objects that can be referenced, and then arranging to reuse any heap memory that was not found during this trace. The common language runtime garbage collector also compacts the memory that is in use to reduce the working space needed for the heap.]
Heap:
A portion of memory reserved for a program to use for the temporary storage of data structures whose existence or size cannot be determined until the program is running.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the necessity for singning an assembly with a strong name?
What are Resource Files ? How are they used in .NET
What are the possible razor view extensions?
What is the greatest advantage of using asp.net mvc over asp.net webforms?
What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?
What is the difference between renderaction and renderpartial?
Why should we go for entity framework?
what happened when type url in address bar and press enter?
how to disable the lazy loading framework?
How does .net framework works?
What is Reference type and value type
mention what is the key advantage of using entity framework or ef?