What is object hashCode used for?

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.

Sizin İçin Seçtik  What is object why it is used?

Leave a Reply

Your email address will not be published. Required fields are marked *