单项选择题
What is the result?()
A.Compilation fails. B.aAaA aAa AAaa AaA C.AAaa AaA aAa aAaA D.AaA AAaa aAaA aAa E.aAa AaA aAaA AAaa F.An exception is thrown at runtime.
What is the result?() A.Compilation fails.B.An exceptio...
A.Compilation fails. B.An exception is thrown at runtime. C.[608, 610, 612, 629] [608, 610] D.[608, 610, 612, 629] [608, 610, 629] E.[606, 608, 610, 612, 629] [608, 610] F.[606, 608, 610, 612, 629] [608, 610, 629]
Givenaclasswhoseinstances,whenfoundinacollectionofobjec...
多项选择题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 programmer is developing a class Key, that will be us...
多项选择题
A programmer is developing a class Key, that will be used as a key in a standard java.util.HashMap. Which two methods should be overridden to assure that Key works correctly as a key?()
A.public int hashCode() B.public void hashCode() C.public int compareTo(Object o) D.public boolean equals(Object o) E.public boolean compareTo(Key k)