Hi, well i am unable to understand that why it is mandatory
to have same hashcode, if two objects are same?
Thanks in advance.
Answer Posted / nalluri
Hi,
No. Never same hash code to 2 same objects. every object is
having it's own hash code.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Does anyone still use java?
What does opcode mean?
What does compareto () do in java?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
What does i ++ mean in Java?
What are the Static and Dynamic Variables? Differentiate them.
How many types of classes are there in java?
What happens if we don’t define serial version uid?
What's the difference between int and integer in java?
What does math floor () do?
How do you calculate square roots?
What are singleton services?
Explain the difference between throw and throws in java?
What means public static?
How many types of keywords are there?