If I have:
int c[] = new int[10];
and
int a[][] = new int[2][3];
and in generally
an n*m*..
n*m*..
The int[] or int[][] is not a primitive data type. It is an Object in Java. And with an Object, the size cannot be calculated straight away.
int[]
int[][]