Multiple Choice Question

Quiz Guidelines

 

QID: 
20
Tags: 
Validated against: 
java8
Question: 

What will the following program print?

class Test{

public static void main(String[] args){

int i = 4;

int ia[][][] = new int[i][i = 3][i];

System.out.println( ia.length + ", " + ia[0].length+", "+ ia[0][0].length);

}

}

Select 1 option

A. It will not compile.

B. 3, 4, 3

C. 3, 3, 3

D. 4, 3, 4

E. 4, 3, 3

Q&A Set: 

Search the Web

Custom Search

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