Hi, well i am unable to understand that why it is mandatory
to have same hashcode, if two objects are same?
Thanks in advance.
Answer Posted / nalluri
Hi,
No. Never same hash code to 2 same objects. every object is
having it's own hash code.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Difference between Preemptive scheduling vs. Time slicing?
What is continuity of a function?
What is purpose of keyword void?
What happens if constructor is private?
Can arraylist hold different types java?
How do you sort in descending order in java using collections sort?
What is break and continue statement?
What is user defined exception in Java?
Difference between operator overloading and function overloading
What is difference between final and finally in java?
What is an inner class in java?
What are java annotations?
Explain the difference between an Interface and an Abstract class?
Is it necessary that each try block must be followed by a catch block?
How do you clear an arraylist in java?