Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

what is the difference between hashcode and reference number in java?

0
Posted

what is the difference between hashcode and reference number in java?

0

Answer The hashcode for each java object can be overriden by the implementing class and may not be unique for each java object. The reference number is unique for each java object, but cannot be accessed by standard java code. Objects that are equal should override the hashcode method to produce the same hash.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123