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
Explain the transient field modifier?
Can static methods be inherited?
Is zero a positive integer?
How to make a write-only class in java?
How do you remove an object from an arraylist in java?
What is the list interface in java programming?
What does g mean in regex?
How to pass arraylist to stored procedure in java?
What are the legal operands of the instanceof operator?
How do you do math powers in java?
Explain about main thread in java?
What is the difference between scrollbar and scrollpane?
How will you initialize an Applet?
Why string objects are immutable in java?
What is nextline method in java?