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
What is the use of parseint in java?
What is use of super keyword in java?
What super () does in java?
How to make a class or a bean serializable?
Can we override constructor?
What are the elements of java?
Can we sort hashmap in java?
Difference between string, stringbuffer and stringbuilder?
What methods are used to get and set the text label displayed by a button object?
What is numeric data type?
If an object is garbage collected, can it become reachable again?
What is maximum size of arraylist in java?
What does the “static” keyword mean? Can you override private or static method in java?
What does the append?
What is compareto?