if two references are having same hash codes,is that means
those are refering to same object?
Answers were Sorted based on User's Feedback
Answer / aparna
no.they need not b referin 2 same obj.if 2 references
pointng to same obj then also the hascode may same or maynt
same.its totally depends on JVM.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / 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 |
What is ResourceBundle class?
what is the difference between static block and static method
What is the maximum size of byte array in java?
What is sortedmap interface?
What is java argument list?
What is a Java package and how is it used?
How can you make a class serializable in java?
What is bool mean?
Explain parallel processing in java8?
How do u pass data from one jsp to another jsp?
What is vector capacity in java?
What are the five major types of reference sources?