9.5. Using an Array

Array object is referenced by the array name

Individual array elements are accessed by specifying an index with the [] operator.

Syntax for array element access : <array name> [<array initialize list>]

Lower bound of an array is always 0

Upper bound of the array is <array name>.length-1 (since array index begins at 0)

At runtime, the index value is automatically checked to ensure that it is within the array index bounds. If the index value is less than 0, or greater than or equal to <array name>.length, an ArrayIndexOutOfBoundsException is thrown.