Given: https://assets.asklib.com/images/image2/2018080114470411896.png Which statement is true?()

A . Compilation fails because the hashCode method is not overridden. B . A HashSet could contain multiple Person objects with the same name. C . All Person objects will have the same hash code because the hashCode method is not overridden. D . If a HashSet contains more than one Person object with name="Fred", then removing another Person,also with name="Fred", will remove them all.

时间:2022-09-03 19:01:06 所属题库:OCJP(310-065)题库

相似题目