An array is a fixed-size container that holds multiple values of the same type. Instead of creating separate variables for test scores, you create one array that stores all in a single structure.
Every element in the array sits at a numbered position called an index. Indices start at , not . So an array of elements has indices through .
Arrays in Java are objects, even when they hold primitives like int or double. Once you create an array with a certain length, that length is locked. You cannot add or remove slots after creation.