1. According to Budimlic et al. (2007), "every array is a Java object". However, at a more
basic level of understanding; an array is merely a container for holding a fixed number
of objects all of the same primitive type (int, byte, short, etc.). With Java, like most other
languages, once the array is created its number is fixed. Each piece of data in the array
is called an element, and the numbering process (indexing) starts at "0". Thus, your
fourth element would be indexed as "3".
To create an array within Java, you must construct the array and specify its length, or
total number of elements in the array, with an = new constructor statement. Without the
"new" constructor, the array will not be properly created and will likely cause errors upon
attempting to be compiled. Other than the array's length, you must also declare its data
type, and its identifier (name).
int[] score = new int[30];
Here you can see an array that would be used to calculate the average score on tests in
a class that has 30 students, where the new constructor makes it possible for it to be
created and all declared on one single line.