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 |
when,where and how to use abstract class and interface
Can there be an abstract method without an abstract class?
What is the need of transient variables in Java ?
Why Over riding is Run Time Polymorphism?
What is unicode?
What is null in java?
can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}
How to display all the prime numbers between 1 and 100
Define immutable object?
Write the code for Palindrome ?
Difference between Primary key and unique key?
what is request dispatcher and how does it work?