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


Please Help Members By Posting Answers For Below Questions

What is tochararray in java?

480


What is data type in computer?

498


what is object slice?

1556


Why do we need data serialization?

524


What data type is string java?

508






How to display arraylist values in java?

465


How do you declare a destructor in java?

482


Can private class be extended java?

530


Can I overload to string method

943


What do you mean by local class?

484


What is the inheritance?

530


Is integer immutable in java?

524


What do you mean by jjs in java8?

535


How do you classify Dialog Box?

623


What is a values collection view ?

667