what is the difference between hashcode and reference number in java?
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.