Skip to content

Glossary: Data Structures and Algorithms in Java

hashCode

Also written: hashCode()

The Java method every object has that returns its hash number. Equal objects must return equal hash codes.

Where the book teaches it

Related terms

hash functionequalsrecord