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
Can we overload the methods by making them static?
Can we declare the main method of our class as private?
What are the 6 mandatory procedures for iso 9001?
What is used of static keyword in java?
How do you check if a character in a string is a digit or letter?
Is minecraft java edition free?
How do generics work in java?
What is the difference between math floor and math round?
what is meant by HQL?
What is integers and example?
Can you explain the meaning of aggregation and composition
What is int short for?
What is ctrl m character?
Write a program to print the pattern given below
What is the program compilation process?