Question
Question 20 (2 points) The concrete classes that implement the List interface are Question 20 options: AbstractList, AbstractSequentialList, and List LinkedList, ArrayList, and Vector LinkedList,
Question 20 (2 points)
The concrete classes that implement the List interface are
Question 20 options:
AbstractList, AbstractSequentialList, and List | |
LinkedList, ArrayList, and Vector | |
LinkedList, ArrayList, and AbstractList | |
None of the above |
Question 21 (1 point)
Comparator
Question 21 options:
specifies two methods, compare and equals | |
specifies two methods, compare and compareTo | |
specifies a single method, compareTo | |
specifies three methods, compareTo, compare, and equals |
Question 22 (1 point)
A TreeSet
Question 22 options:
is like a Set that allows elements to be retrieved according to their natural order, or according to an order specified by a Comparator | |
is a Set that allows elements to be retrieved in the order added | |
is like a Set, only it is faster | |
is a Set that organizes its elements in a tree according to the inheritance hierarchy of the elements |
Question 23 (1 point)
A HashMap
Question 23 options:
uses hash codes to store keys | |
is a subclass of HashSet that implements the Map interface | |
is a subclass of Map that implements the HashCode interface | |
None of the above |
Question 24 (1 point)
A LinkedHashMap
Question 24 options:
provides an iterator that can be used to retrieve its elements | |
is an unordered collection that provides no control over the order of retrieval of stored elements | |
can be set up to maintain its keys in insert or access order | |
None of the above |
Question 25 (1 point)
Collections
Question 25 options:
is a class that contains static methods for working with collections | |
is the interface from which all collection interfaces are derived | |
is the superclass of all abstract and concrete collection classes | |
None of the above |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started