Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.404 :

Posted: Sun Jan 26, 2014 8:54 am
by devlam
int[ ] a[ ] = new int [5][4] ;
int[ ] a[ ] = new int[4][ ] ;

In the explanations of the above array declaration/initialization there is nothing said about the second dimension. This may look like there is no difference, but the first one is actually creating references to arrays of length 4 in the first dimension. The second doesn't put these references.

Re: About Question com.enthuware.ets.scjp.v6.2.404 :

Posted: Sun Jan 26, 2014 9:33 pm
by admin
Explanation has now been enhanced.
thank you for your feedback!