AP Computer Science Aeasymcq1 pt
Which statement declares an array of 10 ints?
A.int[] a = new int[10];
B.int a = new int[10];
C.int[] a = new int(10);
D.int[10] a;
The declaration creates 10 ints.
Aint[] a = new int[10];
Practice more AP Computer Science A questions with full explanations
Practice Unit 6: Array Questions →