cool hit counter
Cafe4Java
Cafe4Java
 

SCJP Mock Exam 3 - Q1
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.
Q1)
Which collection would be the best one to use, if you were working with a Student Information management web application that needs to maintain and search students, stored as instances of a class 'Student'.
You should be able to perform the following:
i) identify a Student by its unique alphanumeric identification number.
ii) Print out the Student in order of their unique identification numbers
  • A) List
  • B) ArrayList
  • C) HashMap
  • D) TreeMap
  • E) HashSet
  • F) Arrays
  • G) LinkedList
  • H) Sets
Answer to Q1


>>>> Go to Q2 >>>>

Submit your feedback on this mock exam


 
 
Custom Search
     
Cafe4Java