answersLogoWhite

0


Best Answer

There is no relation between reference and hascode, Java reference is unique pointer which refers an object. so each object will have a unique reference. but 2 diff object can have same hashcode.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between reference and hashcode?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between reference and hash code in java?

Cat oldCat = new Cat(); Cat newCat = new Cat(); Cat oldCatRef = oldCat; In the above example, oldCat and oldCatRef are references to the same object. Since they refer to the same object, their hashcodes will be equal. But oldCat and newCat do not refer to the same object. They are references to two different objects. But they might have the same hashCode based on their implementation. hashCode is simply a method in Object class which you can override.


What is the difference between an area reference and a grid reference?

The difference between and area and grid reference is that an area reference always has 4 numbers, and a grid reference will always have 6 numbers


What is the difference between a dictionary and a reference manual?

The words


What is the difference between general reference sources and special reference sources?

differentiate general reference sources and special reference sources with example


What is the difference between a weak reference and a strong reference in python?

The same difference as in other languages. A weak reference is one that won't stop the garbage collector from eliminating an object.


What is the difference between to book and to reserve?

differentiate between reference materials and reserved books


What is the difference between the three major credit reference agencies?

the difference between the three major credit reference agencies are the types of the work they do to help people and say them to spread out the truth about them selves.


What is the difference between inertial reference frame and absolute reference frame?

An inertial frame of reference = constant vel. non inertial frame of reference = acceleration


What is the difference between area and grid reference?

This is basic geography.. area reference always have 4 numbers, but grid reference have 6 numbers.


What is frequency offset?

the difference between the source freq. and the reference freq


What is the difference between frame of reference and reference frame?

There is no difference. For Example, reference point means where you see something out of somewhere, and frame of reference means seeing something out of somethings "eyes" i know it sounds weird but i hope i helped.


What is the difference between frame of reference and reference point?

There is no difference. For Example, reference point means where you see something out of somewhere, and frame of reference means seeing something out of somethings "eyes" i know it sounds weird but i hope i helped.