Array Declaration and Construction
An array is an object that consists of a collection of variables (its elements) all with the same type, e.g., array-of-int objects.
The declaration:
int[] identifier ;
declares identifier, a variable that can contain a
reference to an array-of-int object.
The constructor invocation:
new int[ length ]
constructs an array-of-int object that consists of
length int variables with subscripts 0 through
length-1
Thus, the initialized declaration
int[] identifier = new int[ length ];
creates the following structure: