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
what is the difference between HashMap And HashTable?
 Question Submitted By :: Praveencarasala
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the difference between HashMap And HashTable?
Answer
# 1
The HashMap class is roughly equivalent to Hashtable, except
that it is unsynchronized and permits nulls. (HashMap allows
null values as key and value whereas Hashtable doesnt
allow). HashMap does not guarantee that the order of the map
will remain constant over time. HashMap is unsynchronized
and Hashtable is synchronized
 
Is This Answer Correct ?    3 Yes 0 No
Stalin
 
  Re: what is the difference between HashMap And HashTable?
Answer
# 2
HashMap is a nonsyncronized and HashTable is a 
syncronized.
 
Is This Answer Correct ?    2 Yes 0 No
Guest
 
 
 
  Re: what is the difference between HashMap And HashTable?
Answer
# 3
HashMap allows one null key and multiple null values
HashTable doesnn't allow nulls
HashMap is not synchronized
hashtable is synchronized
 
Is This Answer Correct ?    2 Yes 0 No
Ravikiran
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Hi Friends.. can any one provide the real time example for methodoverloading and methodoverriding ......... Honeywell2
What is the basically use of finally while we know it is always executed but why? TCS4
What is multiple inheritance & can we implement it in java? Satyam4
Name two subclasses of the TextComponent class?  2
What are wrapped classes?  6
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?  6
what is custom tags with example? AMDOC1
Can try statements be nested? Wipro2
What is meant by throwing an Exception? Accenture4
What we have to do, when we don't want to implement all methods of an interface?  2
what is meant by UP& DOWN casting in java?  4
How are this and super used?  6
How to prevent a field from serialization ?  2
What are the latest versions in JAVA related areas? Netcraft2
What are Encapsulation, Polymorphism and Inheritance?  2
what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading? Satyam2
If two threads call a static method at the same point of time, what will happen? KPIT1
How many ways can an argument be passed to a subroutine?  2
What is the life cycle of Thread ? HCL7
What are init(), start() methods and whey they are called?  2
 
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