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 ...
bikash8848.hashnode.dev3 min readNo responses yet.