Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeTextbooks
Java
ofj6
Fixed-size collections – arrays

Objects-First with Java: A Practical Introduction using BlueJ, 6th Edition
7. Fixed-size collections – arrays

11 Documented Misconceptions

Check Yourself
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
ArrayElementTypeRepeats
The type of a multi-dimensional array is written as T[] T[] T[]
Misconception
ArrayElementsUntyped
Elements of arrays are untyped
Misconception
ArrayHasLengthMethod
To get the length of an array, one needs to call its length method
Misconception
ArrayInitializerContentsInBrackets
Array initializers list the elements in square brackets
Misconception
ArrayLengthPartOfType
The length of an array is part of its type
Misconception
ArrayListIsArray
ArrayLists are arrays
Misconception
ArrayRankIsLength
Array rank and array length are the same thing
Misconception
ArrayRankNotPartOfType
The rank of an array is not part of its type
Misconception
ArraysGrow
Arrays can grow dynamically

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors