Programming Languages Java Objective
Mar 01, 2013

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

Choose the correct answer:
A) int [] myList = {"1", "2", "3"};
B) int [] myList = (5, 8, 2);
C) int myList [] [] = {4,9,7,0};
D) int myList [] = {4, 3, 7};
Detailed Explanation

Option D is the right answer.

 

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback