Must all the Strings be of the same length?
No. Each element of the array is of the same type a reference to a String
,
but the String
s themselves can be of different lengths.
Each String
object in the example is an ordinary String
.
Nothing about it has changed because its reference
is held in an array.
Each String
can have any number of characters.
The picture shows this.
There is no requirement to fill the array in order. Often this is done to make further work easier, but Java does not require it.
Add a reference to "the end" to the last cell of the array.