Skip to main content

Section 11 · Stage 3: Master Java

JVM Internals & Memory Management

How the JVM loads and runs your code, how memory is organised, how garbage collection works and how to find memory problems.

What you will be able to do

  • Explain how a .java file becomes running code: bytecode, class loading and the JIT
  • Describe where the JVM keeps classes, objects, local variables and threads in memory
  • Explain how garbage collection finds and removes unused objects
  • Choose basic heap and garbage collector settings and read a GC log
  • Find memory leaks and diagnose OutOfMemoryError and StackOverflowError with JDK tools

What you will learn

  1. 11.1From Source to Bytecode7 lessons
  2. 11.2Class Loading8 lessons
  3. 11.3Execution Engine & JIT7 lessons
  4. 11.4JVM Memory Areas8 lessons
  5. 11.5Objects in Memory7 lessons
  6. 11.6Garbage Collection Basics8 lessons
  7. 11.7Garbage Collectors & JVM Options7 lessons
  8. 11.8References & Memory Leaks8 lessons
  9. 11.9Diagnosing Memory Problems9 lessons
  10. 11.10JVM Practice & Case Studies5 lessons