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


Please Help Members By Posting Answers For Below Questions

Does anyone still use java?

836


What does opcode mean?

771


What does compareto () do in java?

777


Under what conditions is an object’s finalize() method invoked by the garbage collector?

786


What does i ++ mean in Java?

708


What are the Static and Dynamic Variables? Differentiate them.

824


How many types of classes are there in java?

781


What happens if we don’t define serial version uid?

786


What's the difference between int and integer in java?

837


What does math floor () do?

730


How do you calculate square roots?

852


What are singleton services?

671


Explain the difference between throw and throws in java?

776


What means public static?

781


How many types of keywords are there?

757