14)
Which of the following statements is(are) true?
a. The ArrayList class extends AbstractList.
b. The ArrayList class implements the List interface.
c. The ArrayList class extends the List interface.
d. The ArrayList class implements AbstractList.
Answers
Answered by
1
C. The ArrayList class extends the List interface.
Answered by
0
A. The ArrayList class extends AbstractList.
B. The ArrayList class implements the List interface.
These statements are true.
About ArrayList :
- AbstractList is extended by the ArrayList class, which implements the List interface. ArrayList allows you to create dynamic arrays that expand as needed.
- The length of a standard Java array is fixed. Arrays cannot be expanded or contracted once they have been constructed, therefore you must know how many elements an array will store ahead of time.
- The size of an array list is set when it is constructed. When this limit is reached, the collection expands automatically. The array may be reduced when objects are deleted.
Similar questions