Which .NET feature enables automatic memory management?

  1. Garbage Collection
  2. Stack allocation only
  3. Memory pooling
  4. Manual memory allocation

Explanation

Garbage Collection is an automatic memory management feature that automatically reclaims memory used by objects that are no longer reachable, preventing memory leaks and simplifying memory management.