Java 中,Comparator 与 Comparable 有什么不同? Comparable 接口用于定义对象的自然顺序,而 comparator 通常用于定义用户 定制的顺序。Comparable 总是只有一个,但是可以有多个 comparator 来定义 对象的顺序。