AP Computer Science Amediummcq1 pt

An ArrayList of String can store

A.only String objects
B.Strings and ints
C.any object type
D.only null

Explanation

Core Concept

The type parameter constrains elements.

Correct Answer

Aonly String objects

More Unit 7: ArrayList practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 7: ArrayList Questions →