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 does sprintf return?
What is an array length?
What is the difference between serial and throughput garbage collector?
Wha is the output from system.out.println(“hello”+null); ?
List some important features of java 10 release?
Which sorting is used in arrays sort in java?
Why method overriding is used?
What is used of static keyword in java?
Why is it called buffering?
Explain thread life cycle in java?
Why are the destructors for base class and derived class called in reverse order when the program exits
What is the purpose of java?
Is it possible to override the main method?
What is parameter example?
Explain the features of interfaces in java?