What is not true of .hashCode() in Java?

  • A: there is a default .hashCode() for any Object
  • B: returns an int
  • C: must be the same for objects that are .equals()
  • D: could be negative
  • E: is usually a prime

    Answer

    Contents    Page-10    Prev    Next    Page+10    Index