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
Which is bigger float or double?
What must a class do to implement an interface in java programming?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
What are the different types of java?
Which object oriented concept is achieved by using overloading and overriding?
What is parsing a string?
What is the purpose of the strictfp keyword?
What is string pool?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What are inner classes or non static nested classes in java?
What are the different types of collections in java?
what is daemon thread and which method is used to create the daemon thread? : Java thread
What are the differences between include directive and include action?
Is java jre still free?
What is finalize()?