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:

Verified
Correct Answer:
Verified
Q35: A polyline object in Java is<br>A) an
Q36: So long as one is only accessing
Q37: Just as arrays can only have a
Q38: Write a method that takes an array
Q39: Code Example Ch 08-1<br>Assume an int array,
Q40: Assume Movie is a class whose objects
Q41: Code Example Ch 08-1<br>Assume an int array,
Q43: In a two-dimensional array, both dimensions must
Q44: If x is a char and values
Q45: Write a method to compute and return