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
What is meant by bytecode?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
Can I uninstall java?
Explain aggregation in java?
can used Protected Class outside Function.?
Is there any difference between nested classes and inner classes?
What does yield method of the thread class do?
What do you mean by constant time complexity?
What is the benefit of lambda expressions?
Why is the main method static?
How can you share data between two thread in Java?
What is externalizable interface?
What is a singleton factory?
Difference between object instantiation and construction ?
How objects of a class are created if no constructor is defined in the class?