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
Explain the difference between static and dynamic binding in java?
How infinite loop is declared?
Can an interface implement another interface?
What is the synonym of string?
What is keyword auto for?
What is java objectoutputstream?
What is meant by distributed application? Why are we using that in our application?
Why does java have different data types for integers and floating-point values?
How can a gui component handle its own events in java programming?
What is contract between hashcode and equal method?
How would you convert bytes to string?
What are the data types supported by java? What is autoboxing and unboxing?
What is the private method modifier?
What do you mean by boolean?
What is static import in java?