What is the difference between “ArrayList” and “LinkedList” in Java?
A. “ArrayList” is an array-based implementation of a list, while “LinkedList” is a linked-based implementation of a list
B. “LinkedList” is an array-based implementation of a list, while “ArrayList” is a linked-based implementation of a list
C. “ArrayList” is faster than “LinkedList”, while “LinkedList” uses less memory than “ArrayList”
D. “LinkedList” is faster than “ArrayList”, while “ArrayList” uses less memory than “LinkedList”
Answer:A
What is the difference between “ArrayList” and “LinkedList” in Java?
A. “ArrayList” is an array-based implementation of a list, while “LinkedList” is a linked-based implementation of a list B. “LinkedList” is an array-based implementation of a list, while “ArrayList” is a linked-based implementation of a list C. “ArrayList” is faster than “LinkedList”, while “LinkedList” uses less memory than “ArrayList” D. “LinkedList” is faster than “ArrayList”, while “ArrayList” uses less memory than “LinkedList”