Q. Which of the following methods are present in comparator interface?
β
Correct Answer: (A)
compare()
Explanation: The comparator interface contains the following two methods,
compare()
equals()
compare()
equals()