+ 3
How garbage collector works in java?
3 Respostas
+ 9
you are in luck there
this article was posted on JavaScript weekly this weekend
i know it refers to JavaScript but the concept of garbage collection works similarly in most languages
the concept explained in the first part of the article as a background to the rest
https://blog.sessionstack.com/how-javascript-works-memory-management-how-to-handle-4-common-memory-leaks-3f28b94cfbec
+ 1
After the execution process,the JVM inside stack area calls garbage collector which is a basic need provided by JVM.
When Garbage collector settles inside stack,the JVM pops out of stack
Finally the garbage collector cleans the abandoned objects and other trash that is present in the heap area.
0
And the abandoned objects are eligible for garbage collector