Winston Liek wrote:sorry i'm confused... can you please explain it more?
Arrays in Java are
one-dimensional, however they can contain anything you care to put in them,
including arrays - so Java implements "multi-dimensional" arrays as arrays of arrays, not blocks (or matrices) of contiguous storage.
Does it mean without initializing array, it is equivalent to:
int[][] array1 = new int[3][]?
Pretty much (as you say, without the initialization though).
Arrays are simply another type of object.
Winston