Stack
A memory region containing the local variables and parameters of currently executing functions.
Related concepts: CallReturnFunctionMethod
Closest Wikipedia entry: Call stack — In computer science, a call stack is a stack data structure that stores information about the active subroutines of a computer program. This type of stack is also known as an execution stack, program stack, control stack, run-time stack, or machine stack, and is often shortened to simply the "stack". Although maintenance of the call stack is important for the proper functioning of most software, the details are normally hidden and automatic in high-level programming languages.
Misconceptions about Stack11 documented Misconceptions
Check YourselfCallWithoutFrame
A method invocation does not necessarily allocate a stack frameCallerFrameContainsCalleeFormal
Stack frame of caller includes variables for callee's formal parametersFrameIsClassInstance
A stack frame is the same as an instance of a classNoLocalVariables
There are no local variablesObjectLabeledWithConstructorSignature
In stack and heap diagrams, an object on the heap is labeled like a stack frame of a constructor callRecursiveActivationsShareFrame
Recursive calls of a method share a stack frameReferenceIntoStack
References can point into the stackReturnUnwindsMultipleFrames
A return statement can unwind multiple call stack framesStackTraceIsCallHistory
A stack trace is the sequence of previously called methodsStaticFrameInGlobals
Stack frame of static method calls lives in the global memory area