AP Computer Science Amediummcq1 pt
Inserting at the front of an ArrayList is slower than appending because
A.existing elements must shift right
B.the list must be copied to a bigger list
C.insertion is always instant
D.the front is reserved
Insertion at index 0 moves every element.
Aexisting elements must shift right
Practice more AP Computer Science A questions with full explanations
Practice Unit 7: ArrayList Questions →