Just like single-dimensional arrays, multidimensional arrays are implemented as objects, so creating a multidimensional array takes the same two steps as creating a single-dimensional array:
declaring the object reference for the array
instantiating the array
In arrays with elements of primitive types, each element of the array contains a value of that type. For example, in an array of doubles, each element contains a double value. In arrays with a class data type, each element is an object reference, which points to the location of an object of that class.
To declare a multidimensional array, we use the same syntax as for a single-dimensional ...