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 / venkateswara reddy
NO No NO....
Check it once..
If there r two same objects, there must be a diffent
hashcode to them....
U never find same hashcode to any two objects
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can the interface be final?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
How is hashcode calculated in java?
What are structs in java?
Why do we override tostring method in java?
Can we execute java program without main method?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
Explain the features of interfaces in java?
which class is the wait() method defined in? : Java thread
when to use ArrayList and when to use HashMap in webApplication.
Can we create a constructor in abstract class?
What is variable and constant explain with example?
What are the advantages and disadvantages of object cloning?
What are the differences between throw and throws?
What is the purpose of the system class in java?