Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



if two references are having same hash codes,is that means those are refering to same object?..

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

if two references are having same hash codes,is that means those are refering to same object?..

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

if two references are having same hash codes,is that means those are refering to same object?..

Answer / ravurivinod

Thank you Aparna
for your feed back

Is This Answer Correct ?    0 Yes 0 No

if two references are having same hash codes,is that means those are refering to same object?..

Answer / dimpu

thanks for ur answer aparna

Is This Answer Correct ?    0 Yes 0 No

if two references are having same hash codes,is that means those are refering to same object?..

Answer / rajender

i agree with anuradha answer.but we can implement hashcode
method.in case of strings they implemented hashcode

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why java is a platform independent? Explain

0 Answers  


What are the allowed, non-Unicode letter characters that can be used as the first character of an identifier?

2 Answers  


Is there a case when finally will not execute?

0 Answers  


What is parsing and its types?

0 Answers  


List the features of java programming language.

0 Answers  


Which java.util classes and interfaces support event handling?

2 Answers  


Why can't you declare a class as protected?

0 Answers  


Why do we need variables?

0 Answers  


What is meant by attribute?

0 Answers  


what is daemon thread and which method is used to create the daemon thread? : Java thread

0 Answers  


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?

4 Answers  


Categories