Array

An array is a numerically indexed collection of elements holding values.

Related concepts:  TypeValue

Closest Wikipedia entry:  Array data type

Misconceptions about Array
23 documented Misconceptions

Check Yourself
Misconception
ArrayAccessWithParentheses — Java
Parentheses are used to access an element in an array
Misconception
ArrayAllocationWithoutNew — Java
Arrays are created without the new keyword
Misconception
ArrayBracketCountIsLength — Java
The number of brackets in an array type or an array initializer corresponds to the length of the array
Misconception
ArrayElementTypeRepeats — Java
The type of a multi-dimensional array is written as T[] T[] T[]
Misconception
ArrayElementsUntyped — Java
Elements of arrays are untyped
Misconception
ArrayHasLengthMethod — Java
To get the length of an array, one needs to call its length method
Misconception
ArrayInitializerContentsInBrackets — Java
Array initializers list the elements in square brackets
Misconception
ArrayLengthCannotBeZero — Java
An array cannot have a length of 0 elements
Misconception
ArrayLengthPartOfType — Java
The length of an array is part of its type
Misconception
ArrayListIsArray — Java
ArrayLists are arrays
Misconception
ArrayRankIsLength — Java
Array rank and array length are the same thing
Misconception
ArrayRankNotPartOfType — Java
The rank of an array is not part of its type
Misconception
ArraysGrow — Java
Arrays can grow dynamically
Misconception
ForEachIteratesOverIndices — Java
An enhanced for loop iterates over the indices of an array or a collection
Misconception
ForEachVariableIsElement — Java
One can assign to the variable of an enhanced for statement to store a value in the corresponding array or collection element
Misconception
MultidimensionalArray — Java
A multi-dimensional array is one single array object
Misconception
NoJaggedArrays — Java
Multi-dimensional arrays have a rectangular shape
Misconception
OnlyInnermostArrayElements — Java
Only the elements of the innermost array of a multi-dimensional array are accessible
Misconception
OutOfBoundsElementsAreNull — Java
Out-of-bounds array elements are null
Misconception
MapInPlace — JavaScript
Map modifies the elements of the array on which it operates in place
Misconception
TypeofArrayIsArray — JavaScript
The typeof operator applied on an array returns 'array'
Misconception
ListLengthCannotBeZero — Scratch
A list cannot have a length of 0 items
Misconception
ListsHomogeneous — Scratch
All items in a list must have the same type