AP Computer Science Aeasymcq1 pt

The method list.size() returns

A.the number of elements in the list
B.the capacity of the list
C.the last index
D.the first element

Explanation

Core Concept

size counts current elements.

Correct Answer

Athe number of elements in the list

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 →