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 / venkateswara reddy
NO No NO....
Check it once..
If there r two same objects, there must be a diffent
hashcode to them....
U never find same hashcode to any two objects
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
When parseint method can be used?
What is difference between adapter class and listener?
Why hashset is used in java?
Can an interface have a constructor?
What’s the difference between constructors and other methods?
What is an array in java?
What restrictions are placed on method overriding in java programming?
How do you add an arraylist to an array in java?
Are private methods final?
How do you compare two objects?
Explain about sets?
What is static method with example?
What is a class in java?
What is the difference between overriding & overloading?
extending thread class or implementing runnable interface. Which is better? : Java thread