?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

Declare and Instantiate List and ArryList objects

APCSA-DNLEKK

Which of the following declaration and instantiation statements would produce an error?

A
List nums = new ArrayList ();
B
List words = new List ();
C
ArrayList dubs = new ArrayList ();
D
ArrayList cars = new ArrayList ();
E

All of these choices are valid declaration and instantiation statements