StaticFrameInGlobals
DRAFT

Misconception:

For a static method call, the local variables and parameters are not on the stack, but they are all located in the global area (where static fields are).

Incorrect

Stack frame of static method calls lives in the global memory area

Correct

Correction
Here is what's right.

A static method still gets a completely normal stack frame (activation record) on the call stack.

The only difference between a static and an instance method call is that the latter gets a this variable, while the former does not.

Language

Java
Notional Machine
StackHeapGlobalDiagram

Concepts

Expressible In

Stay up-to-date

Follow us on  twitter to hear about new misconceptions.