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
What is an enumeration?
Give me some null interfaces in java?
What are the main concepts of oops in java?
Why java is a platform independent? Explain
What is the difference between error and an exception?
Is string a wrapper class?
What is the base class of all exception classes in java?
Which one will take more memory: an int or integer?
What is the covariant return type?
How would you format a date in java? I.e. In the ddmmyyy format?
Is singleton class thread safe?
Is java pass by value or pass by reference?
Which is faster set or list in java?
How many characters is 16 bytes?
What is files manifesting?