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                      
tip   SiteMap shows list of All Categories in this site.
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 ?    4 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 is Garbage collection done in Java? T3-Softwares2
Why are the methods of the Math class are static?  1
suppose string s1="rajnish"; string s2="bhaskar"; then what will be happend ? Fidelity6
Can you call a constructor within a constructor?  6
Which characters are allowed to use as the second character of an identifier, and which characters are not allowed?  2
Does any tag exists in HTML to upload and download files ?  2
Can we add two byte variables and assign the result to a byte variable ? b=b1+b2 where b,b1,b2 are byte types TCS3
what is a package?  8
What are Access Specifiers and Access Modifiers. TCS4
could you run the java program without main method?  1
what is aberivation of java?  10
how many types of cloning? Mobily1
long d =10;int i =0;i=d; /// is this possible? If d is very long number (10 digits or some thing) then?  3
What is the difference between panel and frame ? IBM4
What is meant by event handling in SAX parser? Ness-Technologies1
What is the difference between Integer and int?  4
Explain final, finalize() and finally?  6
they asked class A{} class B{} class c{} all the three class saved as a single file,there is no main method in the file and anothe class M.java class m { psvm(String args[]) { // here the parent class can access } } DNS1
which class to use when concatenating strings in a loop. IBM2
What is the Vector class?  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