Difference between Hash Table and Hash Map

smartgoki's Avatar, Join Date: Aug 2006
Newbie Member
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's Avatar, Join Date: Jul 2004
Go4Expert Founder
They refer to the same technique which maps a data with associated key values.
dillipsatpathy's Avatar
Light Poster
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's Avatar
Newbie Member
is thenre any one online
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by hassan
is thenre any one online
Yup.
Aztec's Avatar, Join Date: May 2006
Contributor
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.