Coding Fun Java Java Tutorial – #18 – Garbage Collection

Java Tutorial – #18 – Garbage Collection





The Java garbage collector can be a fairly complex topic to wrap your head around. There are three main sections of the Java garbage collector and they are the young, old and permanent generation. These three sections hold the non reachable objects and the reachable objects, as well as other things such as the garbage collection roots. I will also be going over how we clear objects from the garbage collector, focusing on deletion with compacting and marking.

Want to stay up to date with…

Tags: , , , , , , , , , , , , , , , , , , , , , ,

2 thoughts on “Java Tutorial – #18 – Garbage Collection”

  1. Very noice explanation dude!

  2. Pinaki Dey says:

    It is important to notice that one of the two Survivor spaces is always empty.
    https://plumbr.eu/handbook/garbage-collection-in-java#shenandoah

Leave a Reply

Your email address will not be published. Required fields are marked *