READ Free Dumps For Oracle- 1z0-851
Question ID 3820 | Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo() method, which two statements are true? (Choose two.) |
Option A | A. The class implements java.lang.Comparable. |
Option B | B. The class implements java.util.Comparator. |
Option C | C. The interface used to implement sorting allows this class to define only one sort sequence. |
Option D | D. The interface used to implement sorting allows this class to define many different sort |
Correct Answer | A,C |
Question ID 3821 | Given: |
Option A | A. Set set = new TreeSet(); |
Option B | B. Set set = new HashSet(); |
Option C | C. Set set = new SortedSet(); |
Option D | D. List set = new SortedList(); |
Correct Answer | A |