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 / prasanna

If two objects are equal then there hashcode must same.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is integers and example?

697


What is the size of integer?

827


What is java virtual machine and how it is considered in context of java’s platform independent feature?

845


Why bytecode is called bytecode?

812


What is blank final variable?

792


How do you find the independent variable?

741


What is difference between array and arraylist in java?

697


Does apple use java?

703


How do you compare arrays in java?

708


What is a return in java?

786


What is get () in java?

776


Explain the selection sort algorithm?

850


Explain how to convert any java object into byte array.

746


What is difference between c++ and java ?

864


How does split work in java?

749