Which of the following statements is/are false?
1. Wrapper classes such as String, Date implement Comparable interface.
2. Objects implementing Comparable interface can be used as elements in a SortedSet.
3. Passing a 'Comparator' to the constructor while creating a map overrules the natural-order of a comparable object.
4. It is necessary for a object to implement both Comparator and Comparable so that they can be used in SortedSet.
Back To Top