A two Dimensional array of size 2x2 can be declared like this int[][]x=new int[2][]; What do u think folk's, given option is right or wrong.
Ravindra Mohan
Ranch Hand
Joined: Mar 16, 2001
Posts: 216
posted
0
Hi Nitin, You are right a two dimensional can be declared by <code> int[][]x=new int[2][]; // Legal</code>, but <CODE> int[][]x=new int[][2]; // is ILLEGAL </CODE>. You may like to see the folowing code:
Hope this serves your purpose. All the best for your SCJP. Cheers, Ravindra Mohan
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.