Concept Flow - Garbage collection overview
Start Program
Create Objects
Objects Used?
No→Mark for Garbage Collection
Remove Unused Objects
Continue Using Objects
Free Memory
Program Ends
This flow shows how Java creates objects, checks if they are still used, and if not, marks and removes them to free memory.
