• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between Comparator and Comparable interface

 
Supraja Kannaiyan
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wat is the difference between Comparator and Comparable interface in Java
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javadocs for both interfaces do not look all that similar; what do you think the difference is?
 
Atul Sawant
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please do not post in wrong forum.

Moderator: Kindly shift this thread to appropriate forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic