首页计算机考试Oracle认证
(单选题)

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.

正确答案

来源:www.examk.com

答案解析

相似试题

  • (单选题)

    Given: Which statement is true?()

    答案解析

  • (单选题)

    Given: Which is true?()

    答案解析

  • (多选题)

    Given: Which three are true?()

    答案解析

  • (单选题)

    Given: Which statement is true?()

    答案解析

  • (单选题)

    Given: Which statement is true?()

    答案解析

  • (单选题)

    Given: Which statement is true?()

    答案解析

  • (单选题)

    Given: Which statement is true?()

    答案解析

  • (多选题)

    Given: Which two are true?()

    答案解析

  • (单选题)

    Given: Which statement is true?()

    答案解析

快考试在线搜题