answersLogoWhite

0

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

12y ago

What else can I help you with?

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 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 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 Answers.com Reference Answers and Wikipedia?

Wikipedia an encyclopedia with no questions and answers, and Answers.com Reference Answers has questions and answers.


What is the difference between unconventional and non-conventional?

There is no difference between unconventional and non-conventional. You can use both either of these words to reference something that is not considered the norm.


What is the difference between Typedef and Reference in C plus plus?

A typedef is a compiler macro. A reference is a pointer, usually implemented with transparent syntax. They have no relationship between each other.


What is the difference between a greek god and an Olympian?

The difference is quite simple. "Olympians" in reference to gods are the greek gods with thrones on Olympus. "Greek Gods" is used in reference to the Olympians and minor gods.