Question PRG-JAVA-0056
MediumWhich Java interface lets a class define its natural ordering for sorting?
- A.
Comparable
- B.
Iterable
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Java question
Which Java interface lets a class define its natural ordering for sorting?
Comparable
Iterable
Sign up free to see the answer and a step-by-step explanation.
Serializable
Comparator