Question: Please explain in details the checked answer . Show how it is the answer. 1. Whic ofthe JCF interfaces would be the most useful if
1. Whic ofthe JCF interfaces would be the most useful if we want to store a collection of students enrolled in COMP2402 so that we can quickly check if a student is enrolled in COMP2102? (a) Collection b)Set (c) SortedSet (d) Map (e) SortedMap 2. What if we also want to be able to quickly output a list of students, sorted by (lastname,firstname)? (a) Collection (b) Set cSortedSet (d) Map (e) SortedMap 3. Whatf, in addition, we also want to store some auxiliary information (c.g., a mark) with cach student? (a) Collection (b) Set (c) SortedSet (d) Map SortedMap 4. A Bag is like a Set except that equal elements can be stored more than once. Which of the following is best suited to implement a Bag
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
