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


Please Help Members By Posting Answers For Below Questions

What are static blocks and static initalizers in java ?

778


What is difference between variable declaration and definition?

741


Why we use set in java?

769


What is the different between get and post?

725


What is double in java?

736


How do you call a reference in java?

704


What are the different types of methodologies?

759


Why java doesn’t support multiple inheritances?

786


What is bifunction in java?

882


Can we have more than one package statement in the source file?

859


Define Multiprogramming and Multiprocessing in java.

794


How do you sort a string in alphabetical order in java?

741


What is a newline character in java?

790


What is the difference between math floor and math round?

727


How to make a read-only class in java?

817