AP Computer Science Aeasymcq1 pt

ArrayList uses the wrapper class Integer because

A.collections store objects, not primitives
B.Integer is faster than int
C.int is deprecated
D.Integer takes no memory

Explanation

Core Concept

Generic types require reference types.

Correct Answer

Acollections store objects, not primitives

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 →