ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
if two references are having same hash codes,is that means 
those are refering to same object?
 Question Submitted By :: Ravurivinod
I also faced this Question!!     Rank Answer Posted By  
 
  Re: if two references are having same hash codes,is that means those are refering to same object?
Answer
# 1
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 ?    0 Yes 0 No
Aparna
 
  Re: if two references are having same hash codes,is that means those are refering to same object?
Answer
# 2
Thank you Aparna
  for your feed back
 
Is This Answer Correct ?    0 Yes 0 No
Ravurivinod
 
 
 
  Re: if two references are having same hash codes,is that means those are refering to same object?
Answer
# 3
thanks for ur answer aparna
 
Is This Answer Correct ?    0 Yes 0 No
Dimpu
 
  Re: if two references are having same hash codes,is that means those are refering to same object?
Answer
# 4
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
Rajender
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
How two different class threads communicate with each other?. send example code.  1
can we have virtual functions in java? Wipro4
what is polymorphism? Zensar2
What is 3-tier model? Wipro3
what do you meant by Platform-Independent? Persistent3
where u use Abstraction and Interface in real time Sonata2
Name two subclasses of the TextComponent class?  2
What are teh sub-classes of a component class?  2
why java not supproting multiple inheritance?  3
What is the middleware?  1
What is the basic functionality of DataOutput interface in java? TCS2
wahts is mean by thread? HCL8
Which method will get invoked first in a stand alone application?  1
What are MalformedURLException and UnknownHost Exceptions and whey they will be thrown?  1
Is 'sizeof' a keyword?  3
String is a immutable objects . it means that string does not change........... But it will be chang......... { String s="kapil"; String s1="raj"; String s=s1; then print(.......) The String has been changed .. how it is possible and why its called immutable objects  2
suppose string s1="rajnish"; string s2="bhaskar"; then what will be happend ? Fidelity5
Can an unreachable object become reachable again?  3
Difference between the String and StringBuffer classes?  2
As a developer what steps do you take to improve the performance?  3
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com