Language Fundamentals on Java related Questions and Answers


Question :   Which will legally declare, construct, and initialize an array?
1. int [] myList = {''1'', ''2'', ''3''};
2. int [] myList = (5, 8, 2);
3. int myList [] [] = {4,9,7,0};
4. int myList [] = {4, 3, 7};
Answer :   4 - int myList [] = {4, 3, 7};  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter