Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
Allocation

Allocation

Allocation means reserving memory space to hold some data.

Related concepts:  ValueGarbage Collection

Closest Wikipedia entry:  Memory management

Authoritative Definition

Wikipedia does not necessarily offer the best fitting definition of a concept. The exact meaning we attribute to the concept of Allocation is based on principled authoritative sources such as:

Compilers: Principles, Techniques, and Tools - Section 7

Misconceptions about Allocation
13 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
AddMemberAtRuntime
Set of class members can change at runtime
Misconception
ArrayAllocationWithoutNew
Arrays are created without the new keyword
Misconception
ArrayBracketCountIsLength
The number of brackets in an array type or an array initializer corresponds to the length of the array
Misconception
ArraysGrow
Arrays can grow dynamically
Misconception
ConstructorAllocates
The constructor allocates the object
Misconception
ConstructorReturnsObject
Constructors need to return objects
Misconception
ConstructorWithoutNew
One can write the constructor name, without new, to instantiate a class
Misconception
ObjectsMustBeNamed
A variable is needed to instantiate an object
Misconception
SuperclassObjectAllocated
When instantiating an object of a subclass, an object of a superclass is also allocated

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors