试题详情
- 多项选择题Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo() method, which two statements are true?()
A、The class implements java.lang.Comparable.
B、The class implements java.util.Comparator.
C、The interface used to implement sorting allows this class to define only one sort sequence.
D、The interface used to implement sorting allows this class to define many different sort sequences.
- A,C
关注下方微信公众号,在线模考后查看
热门试题
- Which code&ensp
- Which two̳
- Given classes&
- 绘出以下函数的曲线:r=cos(2θ)r
- Given: What is
- 函数重载时,同名函数的参数类型列表必须不
- 求1~130之间所有整数的立方和并输出结
- 10. abstract&e
- 下面哪个类表示java.awt.Comp
- 假设在目录myprj/src/schoo
- What is th
- 什么是域的隐藏?
- 已知Strings=“Java”,则下面
- 现有: class&ens
- Which willQ
- 如果类中的成员只能被同一包中的类访问,那
- 列举GUI的各种标准组件和它们之间的层次
- 说明覆盖和重载之间的区别。
- 怎样进行文件及目录的管理?
- Given a co