Garbage Collection In Java

Garbage collection is a way of collecting and discarding stale objects in JVM and releasing the memory so that it can be reused to store live objects. All Garbage collection implementations has mainly three passes MARK: Garbage collector marks the stale objects SWEEP: It then reclaims the memory allocated to the objects marked in the … Continue reading Garbage Collection In Java