Why does the Java Collections Framework define a List as an interface rather than a class?
A) To be consistent with earlier versions of Java
B) To allow different types of concrete classes,with different performance characteristics to implement the interface
C) To allow the use of generic types
D) All of the above
Correct Answer:
Verified
Q8: The int indexOf(Object o)method of the List
Q9: A constructor for an array-based list takes
Q10: The difference between an array and an
Q11: Assume an array-based list implemented by a
Q12: The E get(int index)method of the List
Q14: A new element is added to an
Q15: An ArrayList is so called because
A) you
Q16: Assume an array-based list implemented by a
Q17: Assume an array-based list implemented by a
Q18: The size of an array-based list such
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents