A

Admin • 832.70K Points
Coach

Q. Which of the following methods are present in comparator interface?

  • (A) compare()
  • (B) equate()
  • (C) isEqual()
  • (D) All of these
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category Java
  • Hashtags:

Explanation by: Admin

The comparator interface contains the following two methods,

compare()
equals()

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.