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

Is java a pure object oriented language?

730


What is the significance of java packages?

849


What is reverse function?

791


How can we access some class in another class in java?

768


How do you execute a thread in java?

714


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

1883


Which is better singleton or static class?

700


How to compare strings in java?

688


List the features of java programming language.

782


How do you replace a string in java?

750


What is substring 1 in java?

778


Which list does not allow duplicates in java?

717


What does business logic mean?

744


What are the basic interfaces of java collections framework?

836


How a string is stored in memory?

773