cool hit counter
Cafe4Java
Cafe4Java
 

SCJP Mock Exam 4 - Q3
Exam Objective: 6.5 Use capabilities in the java.util package to write code to manipulate a list by sorting, performing a binary search, or converting the list to an array. Use capabilities in the java.util package to write code to manipulate an array by sorting, performing a binary search, or converting the array to a list. Use the java.util.Comparator and java.lang.Comparable interfaces to affect the sorting of lists and arrays. Furthermore, recognize the effect of the "natural ordering" of primitive wrapper classes and java.lang. String on sorting.
Q3)
Which of the following can be used to convert an Array to a List?
  • A) Arrays.toList
  • B) Arrays.asList
  • C) Arrays.list
  • D) Collections.toList
  • E) Collections.asList
  • F) Collections.list
Answer to Q3


    <<<< Back to Q2 <<<<         >>>> Go to Q4 >>>>

Submit your feedback on this mock exam


 
 
Custom Search
     
Cafe4Java