Chapter 10. Arrays
Even Solomon in all his glory was not arrayed like one of these. | ||
--Matthew 6:29 |
In the Java programming language arrays are objects (§4.3.1), are dynamically created, and may be assigned to variables of type Object
(§4.3.2). All methods of class Object
may be invoked on an array.
An array object contains a number of variables. The number of variables may be zero, in which case the array is said to be empty. The variables contained in an array have no names; instead they are referenced by array access expressions that use nonnegative integer index values. These variables are called the components of the array. If an array has n components, we say n is the length of the array; the components of the array are referenced using integer ...
Get Java™ Language Specification, Third Edition, The now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.