Comparable implement compareTo(Object other), thường dùng để sort object hiện tại theo 1 chiều nhất định. Chỉ khi nào class item của collection mà implement Comparable thì mới có thể dùng collections.sort
Comparator implement compare(Object o1, Object o2), dùng khi cần order object theo các cách khác nhau. Comparable thêm các method default sau:



Một vài note khác nhau giữa 2 interface

