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
Give some features of interface?
What does percent mean in java?
What state does a thread enter when it terminates its processing in java programming?
What is JVM and is it platform independent?
What classes of exceptions may be thrown by a throw statement?
What is a instance variable?
What is java abstraction with example?
Why use string handling in Java?
Can we create constructor in abstract class ?
What is a substring of a string?
What are the 4 types of characters?
What is an example of procedure?
What are different types of multitasking?
What is an abstract class and what is it’s purpose?
What is ternary operator in java?