单项选择题

A.字符串相等则返回0
B.字符串不等则返回正数或负数
C.compareTo()要求两个作比较的字符串必须完全相等
D.compareTo()和compareIgnoreCase()的作用没有区别