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 are the different types of constructor?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
0 Answers Akamai Technologies,
What is a variable declaration?
What are the kinds of polymorphism?
Explain about main thread in java?
What are MalformedURLException and UnknownHost Exceptions and whey they will be thrown?
What is are packages?
Is null a string or object in java?
What is string made of?
which swing component is similar to rich text box in .net/vb
any other way to print the text without using System.out.println() in java?
Can a class be subclass of itself?