i

JAVA Complete Course

Multidimensional Arrays

Multidimensional arrays are arrays of arrays. In such case, data is stored in row and column based index (also known as matrix form). In that case, instead of one index we have many indexes (depends how may dimensions we have).

This syntax above is for two-dimensional arrays.

Example to instantiate Multidimensional Array in Java

Jagged array in java is called array which doesn’t have fixes size of columns. For example, first row might have 3 columns, second row – 5 columns and so on;