Skip to content

Glossary: Java Basics

Hash code

Also written: hash

A number worked out from a key that lets `HashMap` and `HashSet` find things quickly. Strings, number types and records provide one automatically.

Where the book teaches it

Related terms

HashMapSet