Page 1 of 1

A programmer has an algorithm that requires a java.util.List that provides an efficient implementation of add(0, object)

Posted: Sun Jun 11, 2023 4:01 pm
by answerhappygod
A programmer has an algorithm that requires a java.util.List that provides an efficient implementation of add(0, object), but does NOT need to support quick random access.What supports these requirements?

A. java.util.Queue
B. java.util.ArrayList
C. java.util.LinearList
D. java.util.LinkedList