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

Please explain in details the checked answer . Show how it is the answer.  Please explain in details the checked answer . Show how it

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? (a) Set (b) Map (c) Map> (d) SortedSet eEither (b) or ( depending on what behaviour we want if we add two elements that are equal but not identical

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!