Objects-First with Java: A Practical Introduction using BlueJ, 6th Edition
7. Fixed-size collections – arrays11 Documented Misconceptions
Check YourselfArrayBracketCountIsLength
The number of brackets in an array type or an array initializer corresponds to the length of the arrayArrayElementTypeRepeats
The type of a multi-dimensional array is written as T[] T[] T[]ArrayElementsUntyped
Elements of arrays are untypedArrayAllocationWithoutNew
Arrays are created without the new keywordArrayHasLengthMethod
To get the length of an array, one needs to call its length methodArrayInitializerContentsInBrackets
Array initializers list the elements in square bracketsArrayLengthPartOfType
The length of an array is part of its typeArrayListIsArray
ArrayLists are arraysArrayRankIsLength
Array rank and array length are the same thingArrayRankNotPartOfType
The rank of an array is not part of its typeArraysGrow
Arrays can grow dynamically