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
What type of variable is error flag?
How many types of the indexof method are there for strings?
What is mean by encoding?
When do we need to use internal iteration? When do we need to use external iteration?
What is a stringbuilder?
How would overload a function based on return type?
What is javac used for?
Why do we use threads in java?
Can you give names of Container classes?
What is command line argument in java?
What is used of static keyword in java?
Are arrays static in java?
what are the states associated in the thread? : Java thread
Which eclipse is best for java?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?