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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
What are uses of Hash Code?
 Question Submitted By :: Suraj Kumar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What are uses of Hash Code?
Answer
# 1
1. When equals() method is invoked on java objects to check 
their equality, then the hash code of objects are checked. The 
two objects having same hash code are equal.
2. The objects having distinct hash code in HashTable 
increases the performance of HashTable. Hence, the objects 
should be checked its distinct hash code before storing into 
HashTable.
 
Is This Answer Correct ?    6 Yes 1 No
Suraj Kumar
 
  Re: What are uses of Hash Code?
Answer
# 2
memory location
 
Is This Answer Correct ?    2 Yes 2 No
Guest
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Name the packages in JDK?  2
What is Map interface? Wipro2
Which is not Object in Java? Honeywell7
Hi friends, i am new to java. can you explain how java is secured.  1
Hi, This is ravi i have a question like this i have string "UNDERSTAND" now i want to count the letters how many times it occures.i.e from the above string the out put should be like this U-1,N-2,D-2,E-1,R-1,S-1,T-1,A-1. how can i achieve this Thnaks in advance for your response ..  4
what modifiers are used with top-level class?  2
What is the difference between a Window and a Frame?  1
In which way does a Primitive data type is passed ? Sun-Microsystems2
What are access modifiers in Java ?  5
Why const and goto are reserved keyword in java?  1
How to perform Singleton of the java class object on multi JVM?  1
What is meant by event handling in SAX parser? Ness-Technologies1
How can final class be used? Wipro2
Why would you desing a J2EE application so user data is entered by way of a JSP page and managed by an underlying Java Beans class? Adobe3
When finally clause is executed?  3
What is Collection interface? Zensar1
1).what is the difference between below examples String s="vijay"; String s=new String("vijay"); TCS11
How the elements are organized in BorderLayout?  4
JSP is by default thread safe or not? what is the meaning of isThreadSafe="true" and isThreadSafe="false". Explain it? Thanks, Seenu Huawei3
write java code to print second max number in the array Huawei9
 
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