?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

Valid List Instantiation

APCSA-KGNJED

Which of the following is an invalid statement and will NOT compile?

A
List list = new List();
B
List c = new ArrayList();
C
ArrayList c = new ArrayList();
D
ArrayList c = new ArrayList<Integer> ();
E
ArrayList<Integer> c = new ArrayList<Integer>();