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 the default access specifier for variables and methods of a class?
What is set string?
How much ram can a 64 bit processor theoretically?
What is break and continue statement?
Why do we need data serialization?
What is getclass () getname () in java?
Is c better than java?
What is the importance of main method in Java?
Why lambda expression is used in java?
Explain the reason behind ending a program with a system.exit(0)?
What is difference between protected and private?
When is the finally clause of a try-catch-finally statement executed?
What is lambda in java?
Explain the pointers in Java?
Should you use singleton pattern?