This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I understood the concept of Comparable interface and how it is used and the advantages of using comparator interface over comparable interface. But i am still confused that when we invoke the sort() method of Collections class Collections.sort(List l);
How did it know that type of List should implement comparable interface?