1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Difference between Hash Table and Hash Map

Discussion in 'Java' started by smartgoki, Aug 1, 2006.

  1. smartgoki

    smartgoki New Member

    Joined:
    Aug 1, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    They refer to the same technique which maps a data with associated key values.
     
  3. dillipsatpathy

    dillipsatpathy New Member

    Joined:
    Sep 14, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  4. hassan

    hassan New Member

    Joined:
    Oct 20, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    is thenre any one online
     
  5. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    Yup.
     
  6. Aztec

    Aztec New Member

    Joined:
    May 9, 2006
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    0
    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.
     

Share This Page