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 are java packages?
What is the symbol for average?
What is entry set in java?
please send me hr interview questions in it industry
Can we create a class inside a class in java?
How do you define a parameter?
What is re-factoring in software?
What is the difference between class & structure?
Explain the difference between intermediate and terminal operations in java8?
What does @param args mean in java?
What is the size of int?
How do you check if a character in a string is a digit or letter?
What is the use of parse function in java?
Can an object be null?
What is the final keyword denotes?