Multiple Choice
Which of the following is a legal way to declare and instantiate an array of 10 Strings?
A) String s = new String(10) ;
B) String[10] s = new String;
C) String[ ] s = new String[10];
D) String s = new String[10];
E) String[ ] s = new String;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q4: The length operator can be used to
Q31: Write a method to compute the average
Q46: An int array stores the following values.
Q47: Which of the following GUI components operates
Q48: For the questions below, assume an int
Q49: Both the Insertion Sort and the Selection
Q52: Just as arrays can only have a
Q53: The statement int[ ] list = {5,
Q55: Assume xArray and yArray are equal length
Q56: A polyline in Java is<br>A) an object<br>B)