Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Algorithms
  4. Implementation of the hash function in a HashMap

Implementation of the hash function in a HashMap

Scheduled Pinned Locked Moved Algorithms
questionjavaoracledata-structurescryptography
2 Posts 2 Posters 6 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    terrybogard4
    wrote on last edited by
    #1

    Hi,
    I was wondering if anyone knew whether the implementation of the

    hash function in a hash map is the same as in a hash table, i.e. are

    the same implementation options available for a hash map?

    Also, I wonder why Hash tables were deprecated in Java 5 other than

    having multiple locks in the ConcurrentHashMap class and whether

    ConcurrentHashMap implements the same hash functions as a Hash Table.

    This is likely a question for Oracle or Microsoft or for someone who has worked there. If anyone knows, please share.

    Thanks,

    Saad

    A 1 Reply Last reply
    0
    • T terrybogard4

      Hi,
      I was wondering if anyone knew whether the implementation of the

      hash function in a hash map is the same as in a hash table, i.e. are

      the same implementation options available for a hash map?

      Also, I wonder why Hash tables were deprecated in Java 5 other than

      having multiple locks in the ConcurrentHashMap class and whether

      ConcurrentHashMap implements the same hash functions as a Hash Table.

      This is likely a question for Oracle or Microsoft or for someone who has worked there. If anyone knows, please share.

      Thanks,

      Saad

      A Offline
      A Offline
      Alan Balkany
      wrote on last edited by
      #2

      The hash function should be identical for a hash table and a hash map; in both cases you go from a key to a table index.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups