The hashCode method is an inbuilt method that returns the integer hashed value of the input value . Here are a few key concepts to remember: Multiple invocations of the hashCode must return the same integer value within the execution of a program unless the Object used within the equals method changes.