Skip to main content
Java Virtual Machine Stacks
- Each Thread in a JVM has a private Stack allocated, It is called Java Virtual Machine stack for that Thread.
- Here, each stack stores Frames(read topic Frames for understanding)
- Stack holds local variables, partial results, and it involves in calling a Method.
- Stack never altered directly, but it manipulated by pop and push operations.
- Memory allocated for the Stack is not required to be contiguous.
- Stack size can be fixed or it can be allocated dynamically.