Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeLanguages
Java
jls21
Array Creation

Java Language Specification, Version Java SE 21 Edition
10.3. Array Creation

Read this Section of the Authoritative Specification

https://docs.oracle.com/javase/specs/jls/se21/html/jls-10.html#jls-10.3

5 Documented Misconceptions

Misconception
ArrayAllocationWithoutNew
Arrays are created without the new keyword
Misconception
ArraysGrow
Arrays can grow dynamically
Misconception
ArrayLengthCannotBeZero
An array cannot have a length of 0 elements
Misconception
OnlyInnermostArrayElements
Only the elements of the innermost array of a multi-dimensional array are accessible
Misconception
StringLengthField
One can know the length of a String object by accessing its length field

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors