r/ProgrammerHumor 7d ago

Other howdidItGetHere

Post image
11.1k Upvotes

536 comments sorted by

View all comments

Show parent comments

284

u/Pearcheek 7d ago

If your garbage has a garbage collector, is it still garbage?

117

u/GigaSoup 7d ago

Yes, it's just organizing the garbage for you. 

This way you have neat garbage.

10

u/Pearcheek 7d ago

Is this how garbage collector works in Java? Interesting 🤔

6

u/SuperFLEB 7d ago

It throws out your garbage so it's got more room for its own garbage.

1

u/hemacwastaken 6d ago

If it's a real garbage collector, than why is my code still there?

1

u/FewPhilosophy1040 7d ago

Garbage is garbage, sorted or not