Solved

Which of the Following Would Initialize a String Array Names

Question 42

Multiple Choice

Which of the following would initialize a String array names to store the three Strings "Huey", "Duey" and "Louie"?


A) String names = {"Huey", "Duey", "Louie"};
B) String[] names = {"Huey", "Duey", "Louie"};
C) String[] names = new String{"Huey", "Duey", "Louie"};
D) String names[3] = {"Huey", "Duey", "Louie"};
E) String names; names[0] = "Huey"; names[1] = "Duey"; names[2] = "Louie";

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions