Java MCQ - English
Which three are legal array declarations?
1, 2, 4
2, 4, 5
2, 3, 4
All are correct.
Answer : A
Sponsored Ad
Feel free to find and hire your online essay writer to help you with papers. AdvancedWriters will not let you down.
View More Related Question
1) Which is a valid keyword in java?
2) Which is a reserved word in the Java programming language?
3) 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
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