About 37,900 results
Open links in new tab
  1. Internal implementation of java.util.HashMap and HashSet

    Nov 23, 2009 · I have been trying to understand the internal implementation of java.util.HashMap and java.util.HashSet. Following are the doubts popping in my mind for a while: Whats is the importance …

  2. java - How is the internal implementation of LinkedHashMap different ...

    Nov 2, 2013 · How is this different from LinkedHashMap implementation? Its doubly linked list implementation of map but does it maintain an array like the above and how does it store pointers to …

  3. dictionary - HashMap Java 8 implementation - Stack Overflow

    May 11, 2017 · As per the following link document: Java HashMap Implementation I'm confused with the implementation of HashMap (or rather, an enhancement in HashMap). My queries are: Firstly static …

  4. collections - How HashMap works internally - Stack Overflow

    Aug 6, 2014 · 0 HashMap in Java is a widely used data structure, which allows key-value pairs to be stored and retrieved in constant time. In this article, we will look into how the get () and put () …

  5. java - How does ConcurrentHashMap work internally? - Stack Overflow

    ConcurrentHashMap. I'm assuming that I use synchronizedCollection(Collection<T> c) on a HashMap. I know that in general a synchronized collection is essentially just a decorator for my HashMap so it is …

  6. How java HashMap works internally? - Stack Overflow

    Mar 9, 2020 · HashMap works on the principle of hashing, we have put (key, value) and get (key) method for storing and retrieving Objects from HashMap. When we pass Key and Value object to put …

  7. Is HashMap internally implemented in Java using LinkedList or Array?

    Feb 14, 2020 · How is HashMap internally implemented? I read somewhere that it uses LinkedList while other places it mentions Arrays. I tried studying the code for HashSet and found Entry array. Then …

  8. java - When and how does HashMap convert the bucket from linked …

    Dec 21, 2017 · I was going through java 8 features and found out that hashmaps use a red black tree instead of a linkedlist when the number of entry sets on the bucket increases. However, doesn't this …

  9. How do HashSet and HashMap work in Java? - Stack Overflow

    Apr 5, 2015 · I'm a bit confused about the internal implementation of HashSet and HashMap in java. This is my understanding, so please correct me if I'm wrong: Neither HashSet or HashMap allow …

  10. java - What exactly is bucket in hashmap? - Stack Overflow

    Jun 22, 2016 · Recently, in an interview I was asked, what exactly is a bucket in hashmap? Whether it is an array or a arraylist or what? I got confused. I know hashmaps are backed by arrays. So can I say …