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
Can we clone singleton class in java?
Is java pass by value or pass by reference?
What one should take care of, while serializing the object?
Can we compare two strings in java?
Can a static class have a constructor java?
How will you compute size of a structure?
What is the purpose of the file class in java programming?
Explain the term virtual machine?
Is 0 an irrational number?
What is ‘is-a ‘ relationship in java?
What are use cases?
What is treeset in java?
What is a parameter in simple terms?
What is backdrop?
What is anagram in java?