AP Computer Science Amediummcq1 pt

Which statement creates an array of 3 Strings?

A.String[] s = new String[3];
B.String s = new String[3];
C.String[] s = new String;
D.new String[3] s;

Explanation

Core Concept

The declaration creates 3 String references.

Correct Answer

AString[] s = new String[3];

More Unit 6: Array practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 6: Array Questions →