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 / prasanna
If two objects are equal then there hashcode must same.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Why vector class is used?
What is the best definition for data?
How to do encapsulation in java?
How do you sort arrays in java?
Explain exception chaining in java?
What is nextline method in java?
What are the main differences between the java platform and other platforms?
What is nan inf?
What is local class in java?
How to implement an arraylist in java?
In java how do we copy objects?
Which data type is class in java?
How can I debug the Java security exceptions and AccessControlExceptions?
Can private class be extended java?
What are the methods used to implement for the key object in the hash map?