Multiple Choice Question

Quiz Guidelines

 

QID: 
411
Tags: 
Question: 

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

Q&A Set: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!