?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

Collection vs List vs ArrayList

APCSA-FXYORV

Which of the following is an invalid statement that WILL NOT compile in Java?

A
List a = new List();
B
ArrayList b = new ArrayList();
C
Collection c = new ArrayList();
D
ArrayList d = new ArrayList();
E
List e = new ArrayList();