Results 1 to 8 of 8
  1. #1
    bugger is offline Senior Member
    Join Date
    Nov 2007
    Posts
    111
    Rep Power
    0

    Default HashTable vs HashMap

    I normally use HashTable to store key-value pairs and it serves the purpose. I have not used HashMap and want to know when to use it? Dose HashMap gives better performance than HashTable?

    Thanks in advance.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  3. #3
    bugger is offline Senior Member
    Join Date
    Nov 2007
    Posts
    111
    Rep Power
    0

    Default

    Ok. So I will continue using HashTables :D

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Up to you. :p I use it because it is easy to use.

    But keep in mind. In programming performance also a valued concept to think about. In your free time better to do it. I think it is better to do it by myself as well.

    Thanks for the good question. :)

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default

    Are you into resurrecting old threads or something?
    Or is it just to plug that site?

  6. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default

    Are you into resurrecting old threads or something?
    Or is it just to plug that site?

  7. #7
    goldest's Avatar
    goldest is offline Senior Member
    Join Date
    Oct 2009
    Location
    Pune, India
    Posts
    469
    Rep Power
    6

    Wink

    Quote Originally Posted by Tolls View Post
    Are you into resurrecting old threads or something?
    LOL... That's funny! :D

    Goldest
    Java Is A Funny Language... Really!
    Click on * and add to member reputation, if you find their advices/solutions effective.

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Working with Key-Value Pairs in a Hashtable
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-12-2008, 09:44 PM
  2. Hashtable example
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-15-2008, 09:43 AM
  3. Hashtable-put method
    By new_1 in forum New To Java
    Replies: 1
    Last Post: 12-23-2007, 08:07 PM
  4. HashTable problem
    By jhetfield18 in forum New To Java
    Replies: 2
    Last Post: 12-16-2007, 11:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •