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
Under what conditions is an object’s finalize() method invoked by the garbage collector?
What is method in java with example?
How you can force the garbage collection?
In Java list the methods that can be overridden?
What is a void in java?
What are java packages?
What is thread safe java?
What is hasnext in java?
Why is java so important?
What is the difference between procedural and object-oriented programs?
Write a function for palindrome and factorial and explain?
What are the actions that can occur when a thread enters blocked state?
In a container there are 5 components. I want to display the all the components names, how will you do that one?
What is size_t?
What are three ways in which a thread can enter the waiting state in java programming?