Explain the concept of Automatic Memory Management in ASP.NET.- The .NET framework has introduced a concept called Garbage collector.
- This mechanism keeps track of the allocated memory references and releases the memory when it is not in reference.
- Since it is automatic, it relieves the programmers from putting extra energy to manage memory.
- It is one of the services that the common language runtime provides during Managed Execution.
- The common language runtime's garbage collector manages the allocation and release of memory for an application.
- For developers, this means that you do not have to write code to perform memory management tasks when you develop managed applications.
- Automatic memory management can eliminate common problems, such as forgetting to free an object and causing a memory leak, or attempting to access memory for an object that has already been freed.
|