The purpose of the hashCode() method is to provide a numeric representation of an object’s contents so as to provide an alternate mechanism to loosely identify it . By default the hashCode() returns an integer that represents the internal memory address of the object.
Read more