Engineering Full Stack Apps with Java and JavaScript
Given the following declaration:
int[][] twoD = { { 1, 2, 3} , { 4, 5, 6, 7}, { 8, 9, 10 } };
What will the following lines of code print?
System.out.println(twoD[1].length);
System.out.println(twoD[2].getClass().isArray());
System.out.println(twoD[1][2]);
Select 1 option
A. 4
true
6
B. 3
true
3
C. 3
false
3
D. 4
false
6