int[] ia = new int[5];
The declaration means we have 5 integer variables:
ia[0], ia[1], ia[2], ia[3], ia[4]
Each of these int variables is automatically initialized to the default value for type int.
So, for example, ia[3] is 0
int[] ia = new int[5];
The declaration means we have 5 integer variables:
ia[0], ia[1], ia[2], ia[3], ia[4]
Each of these int variables is automatically initialized to the default value for type int.
So, for example, ia[3] is 0