title: Java : Comparable vs Comparator
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/420223/difference-between-compare-and-compareto">difference between compare() and compareTo()</a><br>
    <a href="https://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>  </p>
  </blockquote>
  
  
  
  <p>What are the keys differences between Comparable and Comparator.  </p>
  
  <p>and which is preferred over the other in what scenarios?  </p>
  
  <p>Thanks</p>
  
  <p><strong>Updated - GOOD LINK WITH EXAMPLE!!</strong></p>
  
  <p><a href="http://www.digizol.com/2008/07/java-sorting-comparator-vs-comparable.html" rel="noreferrer">http://www.digizol.com/2008/07/java-sorting-comparator-vs-comparable.html</a></p>