Can someone please explain me how garbage collection is working?
(I'm using C# and Java).
It's too complex topic to be covered in one simple answer.
Here is a list of recommended reading:
2.1m questions
2.1m answers
60 comments
57.0k users