Difference between Comparable and Comparator. Difference between Abstract Class and Interface

AnswerBot
2mo

Comparable is an interface used for natural ordering, Comparator is an interface used for custom ordering. Abstract class can have method implementations, Interface cannot.

  • Comparable interface is used...read more

SABAVATH PRUDVI CHOWHAN
1mo
In Comparable we use compare to() method and comparator we use compare() method Abstract class means which hides the unnecessary data and shows the necessary data ex:- ATM, pendrive,TV remote Interfac...read more
Help your peers!
Add answer anonymously...
Infor Global Solution Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter