可学答题网 > 问答 > OCJP(310-065)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Given: Which statement is&


Given: Which statement is true?()

  • ACompilation fails because the hashCode method is not overridden.
  • BA HashSet could contain multiple Person objects with the same name.
  • CAll Person objects will have the same hash code because the hashCode method is not overridden.
  • DIf a HashSet contains more than one Person object with name="Fred", then removing another Person,also with name="Fred", will remove them all.
参考答案
参考解析:
分类:OCJP(310-065)题库