OpenPatch

Java Memory Playground ☕

A playground for getting to know the internals of the stack and heap of a Java application. Students step through a program and watch how objects, references and stack frames are created and removed.

Highlights

  • Step by step — follow a program and see the memory change with every line.
  • Stack and heap side by side — makes the difference between a reference and an object visible.
  • No setup — runs in the browser.
Java Memory Playground

Create Shareable URL

Select Sections