The answer is A,B,E,F I get a little confused with multi dimentsional arrays, even thought i know the rules. I know while assigning an array they should be of the same dimension or you can assign a one dimensional to a 2 dimensional array But it's difficult to implement it when you have arrays like

short b2[][][][]=new short[2][3][2][2];

I get totally lost here..

The only statment that makes sense to me is

b[1][0]=b3 Assigning a varibale to the 0 th element of the 1st array of b.

b2[1][1][0][1]=b[1][0];

Assigning an element of array b to an element of array b2.

Can some one please help with this.

The future belongs to those who believe in the beauty of their dreams.Dream BIG!

I used a rough thumb rule for this type of question and it worked. For eg, short b2 [] [] [] []=new short [2][3][1][2]; while assigning, the dimensions on both sides should match. Like when you say b2[0][1]=b; b is a 2d array and it has been assigned to the 3rd and 4th dim of b2;

b2[1][1][0]=b[0][0];//cannot assign Here you can assign only a 1d array to b2.But an element of 2d array is being assigned.hence not possible.

b2[1][2][0]=b;//cannot assign. Here a 1d array should be assigned not a 2d array.

b2[0][1][0][0]=b[0][0];//can assign. here 2d array element is being assigned to 4d array element.

b2[0][1]=big;//can assign same as b2[0][1]=b;

I understood it better.I am not so sure that I have given you an explanation in the way you can understand. hope this helps!