AP Computer Science Amediummcq1 pt

The method list.clear() does what?

A.removes every element
B.removes the first element
C.returns the list size
D.sorts the list

Explanation

Core Concept

clear empties the list.

Correct Answer

Aremoves every element

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 →