Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Difference between Hash Table and Hash Map (http://www.go4expert.com/forums/difference-hash-table-hash-map-t1103/)

smartgoki 1Aug2006 15:11

Difference between Hash Table and Hash Map
 
Hi,

what are the difference between the Hash Table and Hash Map..?

At what situation, we uses Hash Table / Hash Map?

waiting for reply.

regards,
Gokul.

shabbir 1Aug2006 16:28

Re: Difference between Hash Table and Hash Map
 
They refer to the same technique which maps a data with associated key values.

dillipsatpathy 15Sep2006 12:42

Re: Difference between Hash Table and Hash Map
 
hi smartgoki,
hash map implements the map interface. it belongs to the collection framework.we can store values in key value pairs.the methods are by default not synchronized. Hash table is a legacy class. here also we can store the values in key value pairs. the methods are synchronized.

hassan 20Oct2006 22:41

Re: Difference between Hash Table and Hash Map
 
is thenre any one online

shabbir 21Oct2006 09:10

Re: Difference between Hash Table and Hash Map
 
Quote:

Originally Posted by hassan
is thenre any one online

Yup.

Aztec 28Oct2006 07:31

Re: Difference between Hash Table and Hash Map
 
Quote:

Originally Posted by smartgoki
what are the difference between the Hash Table and Hash Map..?

At what situation, we uses Hash Table / Hash Map?

waiting for reply.

regards,
Gokul.

Hash Table is Java 1.0/1.1 standard library class. Hash Map is a part of Java 2 container library which replaces Hash Table. Hash Table does not have any final methods.


All times are GMT +5.5. The time now is 23:07.