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
Can you inherit a constructor java?
What is member in java?
What is passing by reference in java?
What are the four pillars of java?
Can you extend singleton class?
How do you use equal in java?
How can you read content from file in java?
What is api in java?
What are the types of java languages?
Explain about data types?
Does garbage collection occur in permanent generation space in jvm?
What is the difference between length and length () in java?
Explain the difference between static and dynamic binding in java?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
What is a byte array?