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 |
Why java is a platform independent? Explain
What are the allowed, non-Unicode letter characters that can be used as the first character of an identifier?
Is there a case when finally will not execute?
What is parsing and its types?
List the features of java programming language.
Which java.util classes and interfaces support event handling?
Why can't you declare a class as protected?
Why do we need variables?
What is meant by attribute?
what is daemon thread and which method is used to create the daemon thread? : Java thread
Differences between jdk 1.4 and 1.5
6 Answers SoftSol, TCS, Wipro,
give me the answer of this code class A extnds String This code we can write r not in Java? Explain?