generally for every object contains one unique hashcode generated by jvm. hashcode tells the programmer which class object it is.
OBJECT class produces one unique code for object. i.e, hexa decimal integer.
if u dont like this hexa decimal numerical value there is a chance to overridde hashcode value and whatever value give for that object then u should override hashCode() method in ur class and return it.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
hashcode tells the programmer which class object it is.
OBJECT class produces one unique code for object. i.e, hexa decimal integer.
if u dont like this hexa decimal numerical value there is a chance to overridde hashcode value and whatever value give for that object then u should override hashCode() method in ur class and return it.