单项选择题

TreeMap实现元素的自然排序的方式是哪个()

A.自定义的类实现Comparable接口
B.自定义的类实现Serializable接口
C.自定义的类实现Comparator接口
D.自定义的类实现Iterable接口