|
SCJP Mock Exam 3 - Q3
Exam Objective: 6.1 Given a design scenario, determine which collection classes and/or interfaces should be used to properly implement that design, including the use of the Comparable interface.
Q3)
Which collection would you use if you were working with an e-commerce application that needs to maintain and search shopping cart items, stored as instances of a class 'ShoppingCartItem'. You should be able to identify a shopping cart item by its unique alphanumeric serial number.
- A) List
- B) ArrayList
- C) Map
- D) HashSet
- E) Arrays
- F) LinkedList
- G) Sets
Answer to Q3
<<<< Back to Q2 <<<<
>>>> Go to Q4 >>>>
Submit your feedback on this mock exam
|