Inside a running JVM, memory splits cleanly between areas shared across all threads (Heap, Metaspace, Code Cache) and per-thread execution stacks holding active Stack Frames. Looking at raw javap opcodes makes stack frames, local slots and exception tables crystal clear.
More lessons in Complete Core Java