Java Memory Management
When does the garbage collector free up heap memory? All is taken care of by JVM Algorithm used by GC: Mark & Sweep Mark: JVM mark those objects which are being referenced (Has Connection to Stack Memory). Sweep: JVM sweep those objects which are no ...
Oct 23, 20233 min read7