This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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;
I get totally lost here..
The only statment that makes sense to me is
b=b3 Assigning a varibale to the 0 th element of the 1st array of b.
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 ; while assigning, the dimensions on both sides should match. Like when you say b2=b; b is a 2d array and it has been assigned to the 3rd and 4th dim of b2;
b2=b;//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=b;//cannot assign. Here a 1d array should be assigned not a 2d array.
b2=b;//can assign. here 2d array element is being assigned to 4d array element.
b2=big;//can assign same as b2=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!