未分类题
WhichtwostatementsaretrueaboutthehashCodemethod?()
A.ThehashCodemethodforagivenclasscanbeusedtotestforobjectequalityandobjectinequalityforthatclass.
B.ThehashCodemethodisusedbythejava.util.SortedSetcollectionclasstoordertheelementswithinthatset.
C.ThehashCodemethodforagivenclasscanbeusedtotestforobjectinequality,butNOTobjectequality,forthatclass.
D.TheonlyimportantcharacteristicofthevaluesreturnedbyahashCodemethodisthatthedistributionofvaluesmustfollowaGaussiandistribution.
E.ThehashCodemethodisusedbythejava.util.HashSetcollectionclasstogrouptheelementswithinthatsetintohashbucketsforswiftretrieval.
【参考答案】
C, E