Explian Sorting mechanism in Java

Explain The Difference between comparable and comparator interface

give me a piece of code to understand purpose
LVL 9
Manikandan ThiagarajanSenior consultantAsked:
Who is Participating?
 
girionisConnect With a Mentor Commented:
Thsi explains the difference and has a nice example: http://grdurand.com/static/presentation_four/comparable.html
0
 
girionisCommented:
Thanks for accepting. Glad I was of help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.