Skip to main content

Stack

Learn Stack (JVM Architecture, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

6. Basic Concepts What is the Stack? The Stack is the area of JVM memory that keeps track of method calls. Every time a method is called, a new block of memory called a stack frame is pushed onto the Stack; when the method finishes, that frame is popped off. Unlike the Heap, every thread gets its own private Stack - one thread's Stack is never visible to another thread.

More lessons in JVM Architecture