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.
About Question com.enthuware.ets.scjp.v6.2.404 :
Moderators: Site Manager, fjwalraven
-
- Posts: 50
- Joined: Sun Nov 10, 2013 4:39 am
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.404 :
Explanation has now been enhanced.
thank you for your feedback!
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 3 guests