Which of the following is a legal way to declare and instantiate an array of ten 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; e
Correct Answer:
Verified
Q13: In a two-dimensional array, both dimensions must
Q14: An array index cannot be a float,
Q15: Given the following statement, where CD is
Q16: Code Example Ch 08-1
Assume an int array,
Q17: It is possible to sort an array
Q19: An array, when instantiated, is fixed in
Q20: A command-line argument is data that is
Q21: If int[] x = new int[15]; and
Q22: Given the following array declaration and instantiation,
Q23: If a and b are both int
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