Comparable and Comparator
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1440134/java-what-is-the-difference-between-implementing-comparable-and-comparator">Java: What is the difference between implementing Comparable and Comparator?</a><br>
  <a href="http://stackoverflow.com/questions/2266827/when-to-use-comparable-vs-comparator">When to use Comparable vs Comparator</a>  </p>
</blockquote>



<p>what's the difference between comparable and comparator interface ?
can someone explain me by providing an <strong>corresponding example</strong> ?</p>

<p>Thank You
Mihir Parekh</p>
