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

Java认证考试

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

Which two statements are true regarding the return values of property written hashCode and equals methods from two instances of the same class?()

  • A、 If the hashCode values are different, the objects might be equal.
  • B、 If the hashCode values are the same, the object must be equal.
  • C、 If the hashCode values are the same, the objects might be equal.
  • D、 If the hashCode values are different, the objects must be unequal.
正确答案:C,D
答案解析:
进入题库查看解析

微信扫一扫手机做题