
GC
GC, or Garbage Collection, is a process used by programming languages like Java to automatically manage memory. When a program runs, it creates objects that use memory space. Over time, some objects become unnecessary. Garbage collection identifies and removes these unused objects, freeing up memory so the system can allocate resources efficiently for new tasks. This process helps prevent memory leaks and keeps applications running smoothly without requiring the programmer to manually delete objects. In essence, GC automates memory management, ensuring optimal performance and resource utilization.