?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

String Declaration

APCSA-O4GTL1

Which of the following declaration statements will correctly assign the String "calculus" to the variable named course?

I.    String course = calculus;
II.   String course = new String("calculus");
III.  String course = "calculus";
A

I only.

B

II only.

C

I and III only.

D

II and III only.

E

I, II, and III.