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 |
where is .equals() method and how is it different from == operation <giving some confusing implementation> Is hashing related to these?
what is encapsulation in java? Explain
What is a line break?
how a marker interface gets its functionality and when we implements a marker interface how it got invoked
What will happen when using pass by reference in java?
Can a class be subclass of itself?
Does chrome use java?
What do you understand by the term singleton?
Can we compare two strings in java?
What is a pointer and does java support pointers?
Why do we need singleton class?
What is split return?