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 re-factoring in software?
Are true and false keywords?
When will we use them?
Can we change the value of static variable?
What are the differences between forwarding () method and sendredirect() methods?
List the features of java programming language.
Difference between this() and super() ?
Explain the Propertie sof class?
What is a substring of a string?
What is lambda in java?
What is a instance variable in java?
Why do we need strings in java?
Is break statement can be used as labels in java?
Is string a data type in java?
Can a class be private in java?