?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

List of Integer Elements

APCSA-JN44KL

Consider the following.

List listA = new ArrayList<Integer>();
List listB = new ArrayList();
List listC = new List();
ArrayList listD = new ArrayList();
ArrayList listE = new ArrayList<Integer>();

Which of the following Lists could not contain Integer elements?

A

listA

B

listB

C

listC

D

listD

E

listE