Question: what is the difference between hashcode and reference in java?
Answer: A reference to an Object. Two different Objects can have same hashCode . A reference is a unique pointer to an object where hashCode is a convenient computed attribute.