Automatic memory management by the CLR.
Process:
- The garbage collector periodically scans the heap for objects that are no longer referenced.
- It reclaims the memory occupied by those objects.
Benefits: Prevents memory leaks and simplifies memory management.
Leave a Reply