Java MCQ - English
Which three are legal array declarations? - int [] myScores [];
-
Home | Discussion Forum
Which three are legal array declarations?
1, 2, 4
2, 4, 5
2, 3, 4
All are correct.
Answer : A
View More Related Question
1) Which one of these lists contains only Java programming language keywords?
class, if, void, long, Int, continue
goto, instanceof, native, finally, default, throws
try, virtual, throw, final, volatile, transient
strictfp, constant, super, implements, do
View Answer
2) Which is a valid keyword in java?
3) Which is a reserved word in the Java programming language?
4) Which three are legal array declarations?
5) Which will legally declare, construct, and initialize an array?
int [] myList = {"1", "2", "3"};
int [] myList = (5, 8, 2);
int myList [] [] = {4,9,7,0};
int myList [] = {4, 3, 7};
View Answer