I\'m trying to understand the array setup in java. Why must you initialize space for each each object in the array, after you have created the array. How is it stored in mem
Arrays are continuous space of memory, so they look like more your first sketch:
[object-reference][object-reference]
array[0] = new class() will store in array[0] a reference to the new created object.
array[0] = new class()
array[0]
class[] array = new class[10] will create an array of ten empty slots (or ten null references).
class[] array = new class[10]