if two references are having same hash codes,is that means
those are refering to same object?
Answers were Sorted based on User's Feedback
Answer / aparna
no.they need not b referin 2 same obj.if 2 references
pointng to same obj then also the hascode may same or maynt
same.its totally depends on JVM.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / dheerendra
If two objects are same then on equals obj1.equals(obj2)
return true as well as the hashCode will also be same but if
the hashCode of two objects are same then it is not sure
that objects would point to same reference.
| Is This Answer Correct ? | 2 Yes | 0 No |
what is the Arraylist limit (maximum) by default ?
13 Answers Fidelity, PlanetSoft, Wipro,
Explain about public and private access specifiers?
What do you mean by ternary operator in java?
What is skeleton and stub?
What is the arraylist in java?
If your team member writes code with lots of static variables and static methods, will it cause any side effects?
What are local variables?
How do you convert int to char in java?
What is return null in java?
make a method which any number and any type of argument and print sum of that arguments.....
Program to Find the second largest element in an array.
What is replaceall in java?