About 38,000 results
Open links in new tab
  1. HashMap (Java Platform SE 8 ) - Oracle

    An instance of HashMap has two parameters that affect its performance: initial capacity and load factor. The capacity is the number of buckets in the hash table, and the initial capacity is simply the capacity …

  2. HashMap in Java - GeeksforGeeks

    May 13, 2026 · A HashMap is a part of Java’s Collection Framework and implements the Map interface. It stores elements in key-value pairs, where, Keys are unique. and Values can be duplicated. …

  3. Java HashMap - W3Schools

    Since HashMap implements the Map interface, this is possible. It works the same way, but some developers prefer this style because it gives them more flexibility to change the type later.

  4. Hash table - Wikipedia

    Many programming languages provide built-in hash table structures, such as Python’s dictionaries, Java’s HashMap, C++’s unordered_map, Go maps, which abstract the complexity of hashing from …

  5. What is a hash map in programming and where can it be used

    Apr 7, 2010 · Hashmap is used for storing data in key value pairs. We can use a hashmap for storing objects in a application and use it further in the same application for storing, updating, deleting values.

  6. Internal Working of HashMap: How HashMap Works? - HowToDoInJava

    Aug 6, 2023 · This Java tutorial discussed the internal working of the HashMap class. It discussed how the hash is calculated in two steps, and how the final hash is then used to find the bucket location in …

  7. std::unordered_map - cppreference.com

    std::unordered_map is an associative container that contains key-value pairs with unique keys. Search, insertion, and removal of elements have average constant-time complexity. Internally, the elements …

  8. What is a Hash Map? Time Complexity and Two Sum Example

    Jan 25, 2024 · A hash table or hash map, is a data structure that helps with mapping keys to values for highly efficient operations like the lookup, insertion and deletion operations. In this tutorial, you'll …

  9. A Guide to Java HashMap - Baeldung

    Jan 16, 2025 · Along with ArrayList, HashMap is one of the most frequently used data structures in Java, so it’s very handy to have good knowledge of how to use it and how it works under the hood.

  10. Java HashMap - Tpoint Tech

    Mar 28, 2026 · Java HashMap is used to store data in key-value pairs where each key is unique. It allows fast operations like searching, updating, and deleting data using keys.