Limited access

Upgrade to access all content for this subject

Which of the following is a TRUE statement?

A

A single array list can store elements with different data types, but a single array cannot store elements with different data types

B

When declaring an array, you identify what data type it contains, but you cannot specify which data type is contained in an array list

C

An array list can contain Strings, but an array cannot contain Strings

D

An initializer list can be used to populate an array list, but an initializer list cannot be used with an array

E

The remove() method will return the element removed when used on an array, but it does not return the element removed when run on an array list

Select an assignment template