Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
Lifetime

Lifetime

The lifetime of a variable, array, or object is the duration from its allocation to its deallocation.

Related concepts:  AllocationGarbage CollectionVariableObjectArrayScope

Closest Wikipedia entry:  Object lifetime

Misconceptions about Lifetime
3 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
ControlledLocalAccess — Java
One can control access to local variables using access modifiers
Misconception
LoopBodyScopeImpliesLoopLifetime — Java
Lifetime of variables declared in a loop body extends across all loop iterations
Misconception
ResetStateEachProgramExecution — Scratch
Running a Scratch program first resets the state of the world and then executes the program

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors