Multiple Choice Question

Quiz Guidelines

 

QID: 
231
Tags: 
Question: 

Which of these array declarations and initializations are NOT legal?

Select 2 options

A. int[ ] i[ ] = { { 1, 2 }, { 1 }, { }, { 1, 2, 3 } } ;
B. int i[ ] = new int[2] {1, 2} ;
C. int i[ ][ ] = new int[ ][ ] { {1, 2, 3}, {4, 5, 6} } ;
D. int i[ ][ ] = { { 1, 2 }, new int[ 2 ] } ;
E. int i[4] = { 1, 2, 3, 4 } ;

Q&A Set: 

Search the Web

Custom Search

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