title: regarding compareTo() method in java
body: <p>I am very confused about the working principle of the <code>compareTo()</code> method in Java. On passing a list through <code>Collections.sort()</code> method, which objects are actually get compared to return the negative or positive or zero value?</p>