To initialize a String array names to store the three Strings "Huey", "Duey" and "Louie", you would do
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
Q14: An array index cannot be a float,
Q30: The Mouse Events include
A) mousePressed, mouseReleased, mouseClicked,
Q31: The Mouse Motion Events include
A) mousePressed, mouseReleased,
Q32: The statement int[ ] list = {5,
Q33: Assume that BankAccount is a predefined class
Q34: A polyline in Java is
A) an object
B)
Q36: To declare a three-dimensional int array called
Q37: If x is a char, and values
Q38: Java arrays can store primitive types and
Q40: A Polygon object in Java is
A) a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents