Given a class whose instances, when found in a collection of objects, are sorted by using the compareTo()method, which two statements are true?()
- AThe class implements java.lang.Comparable.
- BThe class implements java.util.Comparator.
- CThe interface used to implement sorting allows this class to define only one sort sequence.
- DThe interface used to implement sorting allows this class to define many different sort sequences.