多做题,通过考试没问题!

Oracle认证考试

睦霖题库>其他计算机考试>Oracle认证考试

Which two statements are true about the hashCode method?()

  • A、The hashCode method for a given class can be used to test for object equality and object inequality for that class.
  • B、The hashCode method is used by the java.util.SortedSet collection class to order the elements within that set.
  • C、The hashCode method for a given class can be used to test for object inequality, but NOT objecte quality, for that class.
  • D、The only important characteristic of the values returned by a hashCode method is that the distribution of values must follow a Gaussian distribution.
  • E、The hashCode method is used by the java.util.HashSet collection class to group the elements within that set into hash buckets for swift retrieval.
正确答案:C,E
答案解析:
进入题库查看解析

微信扫一扫手机做题