concept two - dimensional array in category java

This is an excerpt from Manning's book Java SE 11 Programmer I Certification Guide.
#1 defines a two-dimensional array multiArr. #2 allocates this array, creating two rows and three columns, and assigns all array members the default int value of 0. Figure 6.15 illustrates the array multiArr after it’s initialized using the preceding code.
[5.1] Declare, instantiate, initialize and use a one-dimensional array
[5.2] Declare, instantiate, initialize and use two-dimensional array
In Java, you can define one-dimensional and multidimensional arrays. A one-dimensional array is an object that refers to a collection of scalar values. A two-dimensional (or more) array is referred to as a multidimensional array. A two-dimensional array refers to a collection of objects in which each of the objects is a one-dimensional array. Similarly, a three-dimensional array refers to a collection of two-dimensional arrays, and so on. Figure 7.2 depicts a one-dimensional array and multidimensional arrays (two-dimensional and three-dimensional).
Figure 7.2 One-dimensional and multidimensional (two- and three-dimensional) arrays
![]()
Note that multidimensional arrays may or may not contain the same number of elements in each row or column, as shown in the two-dimensional array in figure 7.2.