MCQ Single Best Answer Not Set

Q Which will legally declare, construct, and initialize an array?

ID: #2208 Array in Java 1,516 views
Question Info
#2208Q ID
Not SetDifficulty
Array in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A int [] myList = {};
  • B int [] myList = (5, 8, 2);
  • C int myList [] [] = {4,9,7,0};
  • D int myList [] = {4, 3, 7};
Correct Answer: Option D

Explanation

int myList [] = {4, 3, 7};

Share This Question

Challenge a friend or share with your study group.