单项选择题

使用Collections中的sort方法对集合进行排序时,如果不指定比较器,则要求集合中的元素类型必须实现()接口。

A.SortedSet
B.Comparator
C.NavigableSet
D.Comparable