• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

Explian Sorting mechanism in Java

Explain The Difference between comparable and comparator interface

give me a piece of code to understand purpose
0
Manikandan Thiagarajan
Asked:
Manikandan Thiagarajan
  • 2
1 Solution
 
girionisCommented:
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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now