Zusammenfassung der Ressource
Frage 1
Frage
Which is not a method of the Object class?
Antworten
-
.clone()
-
.compare()
-
.wait()
-
.finalize()
Frage 2
Frage
If you choose to override Object.equals(), which other method must you override (if any)?
Antworten
-
.clone()
-
.hashCode()
-
.toString()
-
none
Frage 3
Frage
What function property is not correct for Object.equals()?
Antworten
-
reflexive: A equals A
-
transitive: if A equals B and B equals C, then A equals C
-
nullable: if A is null and B is null then A equals B
-
symmetric: if A equals B, then B equals A