Well, the hash code object is the only standard identifier provided by Java that helps in differentiating between various arbitrary objects. Let me add here that it's not unique, but as we know that the equal objects contain/ returns the same hash code. Thus here, when the default toString() method is used it gives the object class and its hash code to help you differentiate between the objects.
For more, you can refer here: hashCode() method