Which of the following methods are present in comparator interface?

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

  1. compare()
  2. equate()
  3. isEqual()
  4. All of these

Answer: A) compare()

Explanation:

The comparator interface contains the following two methods,

  • compare()
  • equals()

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.