Limited access

Upgrade to access all content for this subject

Which of the following statements is invalid (will not compile) when declaring an ArrayList variable?

A
ArrayList<String> list;
B
ArrayList<Double> list;
C
ArrayList<Boolean> list;
D
ArrayList<Object> list;
E
ArrayList<int> list;
Select an assignment template