It is not accurate to say that the stack store is quoted.
Public void Method1 () { int i = 4; int y = 2; New Class1 ();}
Java Virtual machine stack is thread-private, his life cycle is the same as the thread, each method executes at the same time create a stack frame (stack frame), for storing local variable table , operand stack, dynamic link, method exit and other information. Each method from the call until the completion of the process, it corresponds to a stack frame in the virtual machine stack into the plank path out of the stack process.
A local variable table holds the various basic data types, object references (possibly handles or pointers) that the compiler can know. The space required for a local variable table is completed during compilation (64-bit long, double occupies 2 slots, other data types occupy only one), and the runtime does not change.
The above excerpt from the "in-depth understanding of Java virtual machines"
In addition, you can learn more about stack frames.
Stacks in the Java memory area