AP Computer Science Amediummcq1 pt

The method list.set(0, 9) returns

A.the old value that was replaced
B.9
C.the list size
D.nothing

Explanation

Core Concept

set returns the prior element.

Correct Answer

Athe old value that was replaced

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 →