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
State some situations where exceptions may arise in java?
How do we access static members in java?
What is array command?
What is bean? Where it can be used?
What is the purpose of using break in each case of switch statement?
What is binary search in java?
What is externalizable?
Does hashset allow duplicates in java?
Is boolean a wrapper class in java?
What are strings in physics?
How will you get the platform dependent values like line separator, path separator, etc., ?
How are observer and observable used in java programming?
What is update method called?
Why java is considered dynamic?
Which class is the superclass of all classes?