Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Difference between Hash Table and Hash Map?

Answers were Sorted based on User's Feedback



Difference between Hash Table and Hash Map?..

Answer / ranganathkini

Hashtable and HashMap are more less similar to each other
except that the HashMap is unsynchronized and allows nulls
whereas Hashtable is synchronized and does not permit nulls.

Is This Answer Correct ?    27 Yes 2 No

Difference between Hash Table and Hash Map?..

Answer / arun kumar rout

hashtable is Synchronised where as hashmap is not.

Is This Answer Correct ?    17 Yes 2 No

Difference between Hash Table and Hash Map?..

Answer / ravikiran

HashTable is the collection which is legacy.Which doenn't
allows null keys and null values.And methods access is
synchronized.
HashMap is the collection which can allow one null key and
multiple null values.And methods access is not synchronized.

Is This Answer Correct ?    12 Yes 2 No

Difference between Hash Table and Hash Map?..

Answer / guest

Hash Table is synchronized but Hash Map is not. Means Hash
Map allow Null value for key and value but Hash Table does
not allow.

Is This Answer Correct ?    7 Yes 5 No

Difference between Hash Table and Hash Map?..

Answer / guru

hashtable is Synchronised where as hashmap is not.
hash table are legacy classes hashmap are collections

Is This Answer Correct ?    4 Yes 2 No

Difference between Hash Table and Hash Map?..

Answer / guest

HashTable is synchronized where as HashMap is not.
HashMap allows null values for (key,value) for only once
where as HashTable does not.

Is This Answer Correct ?    2 Yes 0 No

Difference between Hash Table and Hash Map?..

Answer / hemasankar reddy suggu

1)Hashtable method all are synchronized where as HashMap
does not Synchornized all methods
2)HAshtable object is thread safe where HashMap object is
not thread Safe
3)Hashtable perfomance is low where Hashtable performance is
High
4)null is not allowed in Hashtable but HAshMap null is allowed
5)Hashtable is Interduced in 1.0V where HashMap interduced
in 1.2V

Is This Answer Correct ?    1 Yes 1 No

Difference between Hash Table and Hash Map?..

Answer / anand

HashTable is the collection which is legacy.Which doenn't
allows null keys and null values.And methods access is
synchronized.
HashMap is the collection which can allow one null key and
multiple null values.And methods access is not synchronized.

Is This Answer Correct ?    2 Yes 5 No

Difference between Hash Table and Hash Map?..

Answer / devendra.m

HashMap and HashTable both are equal...
HashMap is non-synchronized one,where as HashTable
synchronized one.
HashMap allows null as a key & value pair.
where as hashtable wont allows null as key & value pair.

Is This Answer Correct ?    1 Yes 6 No

Difference between Hash Table and Hash Map?..

Answer / santosh nayak

HashMap hm=new HashMap();
hm.put("s","s");
hm.put("a","a");
hm.put(null,"r");
hm.put(null,"t");
hm.put("e","e");

This is the code where we can allow multiple null key values
in HashMap.

Is This Answer Correct ?    1 Yes 12 No

Post New Answer

More Core Java Interview Questions

What is the internal implementation of set in java?

0 Answers  


What do bitwise operators do?

0 Answers  


What is int lol?

0 Answers  


How can you set an applet’s height and width as a percentage?

0 Answers  


long d =10;int i =0;i=d; /// is this possible? If d is very long number (10 digits or some thing) then?

3 Answers  


Garbage collection in java?

0 Answers  


Catch(Exception e){ } in that what is Exception and purpose of that in that place exactly?

3 Answers  


What is the point of java?

0 Answers  


What are the two basic ways in which classes that can be run as threads may be defined?

0 Answers  


What are the types of inner classes (non-static nested class) used in java?

0 Answers  


Can we override a variable in java?

0 Answers  


What is the difference between parameters and arguments ?

2 Answers  


Categories