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
How do you sort an array in java?
What is the collection interface?
What do you mean by jjs in java8?
What is jee6?
What is the purpose of return statement?
What is the epoch date?
Does every java program need a main?
What are the access modifiers in java?
How many types of constructors are used in java?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.
What are selection structures?
do I need to use synchronized on setvalue(int)? : Java thread
What are advantages of exception handling in java?
What is the purpose of javac exe?
Is string a data type in java?