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   To Refer this Site to Your Friends   Click 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
what is Hashmap & Hashtable wirh example?
 Question Submitted By :: Gopalraop
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is Hashmap & Hashtable wirh example?
Answer
# 1
hashmap class is not syncronized but hasTable is syncronized
. both stores key and value. hashtable is part of legasy
class we can use enumerator interface of this hashtable class.
 
Is This Answer Correct ?    8 Yes 1 No
20/04/2008
 
  Re: what is Hashmap & Hashtable wirh example?
Answer
# 2
Hashtable will not allow null key nor values,where as 
Hashmap allows null key and values
 
Is This Answer Correct ?    4 Yes 4 No
Leosun
 
 
 
  Re: what is Hashmap & Hashtable wirh example?
Answer
# 3
---HashTable is synchronised BUT hashmap is not synchronised
---HashTable not allow null keys and null values BUT 
HashMap allow only one null key and multiple null values
---HashTable not allow Duplicate keys and Douplicate values 
are allowed.
 
Is This Answer Correct ?    0 Yes 0 No
Rameshreddy.k
 
  Re: what is Hashmap & Hashtable wirh example?
Answer
# 4
Hashmap is not Synchronized where as Hashtable  is 
Synchronized.

Hashmap allows null values as keys.
Hashtable doesn't allows null values as keys.
 
Is This Answer Correct ?    0 Yes 0 No
Sivadasan
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Difference between Web-based applications,Client- Server applications and Distributed applications? Infosys2
What is the return type of a program?s main() method?  2
when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.  2
can we create a instance for intwerface?  3
What are Advatages of Overloading and Overridding. TCS3
Why const and goto are reserved keyword in java?  1
What is the purpose of the File class?  2
What is the format of Inner Class after it compiled?  1
Where the CardLayout is used?  1
What is the Set interface?  2
What is the protocol is used in type4 driver? CMC2
What is the purpose of premetive data types in java? Merrill-Lynch2
Why do inner class cannot have static declaration except static nested class? Wipro1
Can u write constructor in abstract.If yes den when it will be invoked. SunGard3
whats the life cycle of jsp Satyam2
What is System class and its purpose?  2
What are the advantages of the model over the event- inheritance model?  1
How to decrease number of hashings in has  1
What is the difference between add() and addElement() method in Vector Class ? TCS2
In which way does a Primitive data type is passed ? Sun-Microsystems2
 
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