Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
Stack

Stack

A memory region containing the local variables and parameters of currently executing functions.

Related concepts:  CallReturnFunctionMethod

Closest Wikipedia entry:  Call stack

Misconceptions about Stack
9 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
CallWithoutFrame — Java
A method invocation does not necessarily allocate a stack frame
Misconception
CallerFrameContainsCalleeFormal — Java
Stack frame of caller includes variables for callee's formal parameters
Misconception
FrameIsClassInstance — Java
A stack frame is the same as an instance of a class
Misconception
NoLocalVariables — Java
There are no local variables
Misconception
RecursiveActivationsShareFrame — Java
Recursive calls of a method share a stack frame
Misconception
ReferenceIntoStack — Java
References can point into the stack
Misconception
ReturnUnwindsMultipleFrames — Java
A return statement can unwind multiple call stack frames
Misconception
StackTraceIsCallHistory — Java
A stack trace is the sequence of previously called methods
Misconception
ReturnUnwindsMultipleFrames — Python
A return statement can unwind multiple call stack frames

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors