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 ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is gui programming?
What is the difference between class & object?
Which methods are used during serialization and deserialization process?
Can we override final method?
Can an integer be a string?
Why vector is used in java?
What are basic data types?
What is the purpose of the main method?
Describe the syntax of multiple inheritance? When do we use such an inheritance?
Can we overload final method in java?
Is the empty set a singleton?
How to avoid memory leak in java?
How we can declare a static variable?
How do I know if java is installed?
Explain some best practices you would apply while using collection in java?