Concept
How the JVM finds objects nobody can reach any more and reclaims their memory, and what that costs your application.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show Garbage collection doing its job.
# see what the collector is doing
java -Xlog:gc -Xmx512m -jar app.jar
# a typical line: pause time is what users feel
# [2.113s][info][gc] GC(7) Pause Young (Normal) (G1 Evacuation Pause) 230M->41M(512M) 6.2msCalling System.gc() to "free memory" in application code. It is a hint the JVM may ignore, and when honoured it triggers a full collection that pauses everything.
Your roadmap puts these before Garbage collection, unless you already know them.
Once a session shows you understand Garbage collection, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.
What you are asked on review day.
When does an object become eligible for garbage collection in Java?
When no chain of references from a GC root (a live thread stack, a static field, a JNI reference) reaches it any more. Setting a variable to null only helps if that was the last such path.
Topics that build on Garbage collection.