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
How does map works in java?
What restrictions are placed on method overriding?
what is thread? What are the high-level thread states? : Java thread
What is unsigned char?
Where are the local variables stored?
If a method is declared as protected, where may the method be accessed in java programming?
Distinguish between a predicate and a function?
Which variables are stored in stack?
What causes memory leaks in java?
How many bytes is string in java?
Is array a class?
What is jvm? Why is java called the platform independent programming language?
What is the static method?
Is ++ operator is thread safe in java?
What modifiers may be used with an inner class that is a member of an outer class in java programming?