使用TreeSet的无参构造创建集合对象,添加元素时,被添加的元素必须
A.实现Comparable接口
B.有main方法
C.有get和set方法
D.实现Serializable接口
正确答案是A