Home »
MCQs »
Java MCQs
Which of the following methods are present in comparator interface?
55. Which of the following methods are present in comparator interface?
- compare()
- equate()
- isEqual()
- All of these
Answer: A) compare()
Explanation:
The comparator interface contains the following two methods,