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

  • (A) compare()
  • (B) equate()
  • (C) isEqual()
  • (D) All of these
πŸ’¬ Discuss
βœ… Correct Answer: (A) compare()
Explanation: The comparator interface contains the following two methods,

compare()
equals()
Explanation by: Team MCQ Buddy
The comparator interface contains the following two methods,

compare()
equals()

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
311
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
89%
Success Rate