if two references are having same hash codes,is that means
those are refering to same object?
Answer Posted / dheerendra
If two objects are same then on equals obj1.equals(obj2)
return true as well as the hashCode will also be same but if
the hashCode of two objects are same then it is not sure
that objects would point to same reference.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the original name of java?
Is c better than java?
Which browsers work with java?
What is the maximum size of arraylist in java?
Is arraylist ordered in java?
Why is a string immutable?
What type of variable is gender?
Name few java util classes introduced with java 8 ?
What are keywords give examples?
Are arrays classes in java?
What is the disadvantage of synchronization?
What is preparedstatement in java?
What is consumer in java?
Why webdriver is an interface?
What is an empirical question?