AP Computer Science Amediummcq1 pt
Which creates a 2D String array with 2 rows and 3 columns?
A.String[][] s = new String[2][3];
B.String[][] s = new String[3][2];
C.String[][] s = new String[2];
D.String[][] s = new String(2, 3);
The sizes are rows then columns.
AString[][] s = new String[2][3];
Practice more AP Computer Science A questions with full explanations
Practice Unit 8: 2D Array Questions →