June 2018
Beginner
722 pages
18h 47m
English
In programming, a hash value is a 32-bit signed integer that represents some data. It is used in such data structures as a HashTable. After a record is created in a HashTable, its hash value can be used later to quickly find and retrieve the stored data. A hash value is also called a hash code, digest, or simply hash.
In Java, the hashCode() method in the base Object class returns a hash value as the object representation, but it it does not take into account the values of any children's fields. This means that if you need the hash value to include the child object state, you need to implement the hashCode() method in that child class.
Read now
Unlock full access