Forums Register Login
which code is hashcode

hi, here i am displaying a hashcode in three ways but which is the actual hashcode here
please sombody tell me the actual hashcode...
thanks in advance
All the above call the default hashCode method in your Object class. If you need to provide your own hashCode method then it should be an instance method with no argument as shown below:

If you override the hashCode() method remember to override equals() method as well. If 2 objects are equal, then they should produce the same hashcode but the reverse is not true.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 804 times.

All times above are in ranch (not your local) time.
The current ranch time is
Mar 17, 2018 22:19:28.