why there is two interface comparable and comparator in java for sorting the collections? : <p>why there is two interface comparable and comparator in java for sorting the collections? </p>

<p>both are doing the same task it seems... confusion on this sorting technique? Please advise</p>
