+ 3

How garbage collector works in java?

16th Sep 2017, 3:50 PM
Gourav raghuwanshi
Gourav raghuwanshi - avatar
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
16th Sep 2017, 3:59 PM
Burey
Burey - avatar
+ 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.
17th Jul 2020, 3:33 AM
Nishanth
Nishanth - avatar
0
And the abandoned objects are eligible for garbage collector
17th Jul 2020, 3:33 AM
Nishanth
Nishanth - avatar