Tagged articles
181 articles
Page 2 of 2
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jan 8, 2021 · Backend Development

Deep Dive into Java HashMap, ConcurrentHashMap, JMM, and Concurrency Fundamentals

This article provides a comprehensive overview of Java's HashMap and ConcurrentHashMap implementations, explains core concurrency concepts such as thread states, the differences between concurrency and parallelism, memory models, volatile semantics, singleton patterns, thread pools, ThreadLocal, CAS, and the AQS framework.

HashMapJMMJava
0 likes · 31 min read
Deep Dive into Java HashMap, ConcurrentHashMap, JMM, and Concurrency Fundamentals
Top Architect
Top Architect
Jan 7, 2021 · Fundamentals

Android HashMap Source Code Analysis (Based on Android SDK 28)

This article provides a detailed analysis of the Android HashMap implementation in SDK 28, covering its fields, internal Node class, constructors, resizing logic, hash function, collision handling, and related Map implementations, with complete source code excerpts and performance considerations.

AndroidCollisionResolutionDataStructure
0 likes · 34 min read
Android HashMap Source Code Analysis (Based on Android SDK 28)
macrozheng
macrozheng
Nov 24, 2020 · Backend Development

Fastest & Safest HashMap Traversal: Compare Java 8 Streams, Lambdas, and Iterators

This article examines the four major HashMap traversal techniques—Iterator, for‑each loops, Lambda expressions, and Streams API—detailing seven concrete implementations, benchmarking their performance with JMH, analyzing generated bytecode, and evaluating safety when modifying collections during iteration, ultimately recommending the most efficient and secure approaches.

HashMapJavaStreams
0 likes · 19 min read
Fastest & Safest HashMap Traversal: Compare Java 8 Streams, Lambdas, and Iterators
IT Xianyu
IT Xianyu
Oct 10, 2020 · Fundamentals

How to Choose Between HashMap and TreeMap in Java

HashMap and TreeMap serve different purposes in Java: HashMap offers fast, unordered access using hash codes, while TreeMap maintains keys in sorted order via a red‑black tree, and the article explains their implementations, performance trade‑offs, and how to customize TreeMap ordering with comparators.

CollectionsComparatorData Structures
0 likes · 5 min read
How to Choose Between HashMap and TreeMap in Java
Selected Java Interview Questions
Selected Java Interview Questions
Oct 7, 2020 · Fundamentals

In-depth Overview of Java HashMap and ConcurrentHashMap: Structure, Operations, and Performance

This article provides a comprehensive explanation of Java's HashMap and ConcurrentHashMap implementations, covering their internal data structures, hashing mechanisms, load factor, resizing process, collision handling, and the differences between JDK 1.7 and 1.8, along with practical interview questions and code examples.

BackendConcurrentHashMapHashMap
0 likes · 15 min read
In-depth Overview of Java HashMap and ConcurrentHashMap: Structure, Operations, and Performance
vivo Internet Technology
vivo Internet Technology
Sep 16, 2020 · Backend Development

How ConcurrentHashMap Guarantees Thread‑Safe Reads and Writes: A Deep Dive into C13Map Internals

This article explains the fundamentals of HashMap, then dissects the internal fields, node‑array safety, read‑path guarantees, write‑path locking, atomic compute methods, resize‑transfer mechanics, traverser design, and bulk‑task support that together make Java's ConcurrentHashMap (C13Map) a highly concurrent, lock‑free data structure.

ConcurrentHashMapData StructuresHashMap
0 likes · 49 min read
How ConcurrentHashMap Guarantees Thread‑Safe Reads and Writes: A Deep Dive into C13Map Internals
Wukong Talks Architecture
Wukong Talks Architecture
Aug 31, 2020 · Fundamentals

Understanding Thread Safety Issues in Java Collections: ArrayList, HashSet, HashMap and Their Solutions

This article explains why core Java collection classes such as ArrayList, HashSet, and HashMap are not thread‑safe, demonstrates the underlying mechanisms of their initialization and resizing, and presents multiple approaches—including Vector, synchronized wrappers, and CopyOnWrite variants—to achieve safe concurrent access.

ArrayListHashMapJava
0 likes · 16 min read
Understanding Thread Safety Issues in Java Collections: ArrayList, HashSet, HashMap and Their Solutions
Architect's Tech Stack
Architect's Tech Stack
Aug 10, 2020 · Fundamentals

Understanding Java HashMap and ConcurrentHashMap: Structure, Operations, and Performance

This article explains the internal structure of Java's HashMap and ConcurrentHashMap, covering hash calculations, bucket arrays, linked‑list and red‑black tree conversions, load factor and resizing behavior, as well as the differences in concurrency control between JDK 1.7 and 1.8 implementations.

ConcurrentHashMapData StructuresHashMap
0 likes · 13 min read
Understanding Java HashMap and ConcurrentHashMap: Structure, Operations, and Performance
ITPUB
ITPUB
Jul 31, 2020 · Backend Development

What Java Developers Can Learn from Top StackOverflow Questions: Branch Prediction, Security, Exceptions, and More

This article reviews several of the most popular Java questions on StackOverflow, explaining branch prediction for sorted arrays, why char[] is safer than String for passwords, handling NullPointerException, deterministic random strings, historic timezone quirks, creating an uncatchable exception, and the differences between HashMap, TreeMap and LinkedHashMap, highlighting practical lessons for developers.

Exception HandlingHashMapJava
0 likes · 10 min read
What Java Developers Can Learn from Top StackOverflow Questions: Branch Prediction, Security, Exceptions, and More
Selected Java Interview Questions
Selected Java Interview Questions
Jul 28, 2020 · Fundamentals

Understanding Java HashMap: Structure, Operations, and Internals

This article explains the internal structure and behavior of Java's HashMap, covering its node and tree node classes, default parameters, hash calculation, resizing mechanism, and the conditions under which linked lists are transformed into red‑black trees, along with code examples and performance considerations.

Data StructureHashMapJava
0 likes · 22 min read
Understanding Java HashMap: Structure, Operations, and Internals
Programmer DD
Programmer DD
Jul 23, 2020 · Fundamentals

When to Use HashMap vs TreeMap in Java? A Practical Guide

This article explains the differences between Java's HashMap and TreeMap, covering their underlying implementations, performance characteristics, thread safety, and how to customize TreeMap for descending order, helping developers choose the right map for their needs.

CollectionsData StructuresHashMap
0 likes · 7 min read
When to Use HashMap vs TreeMap in Java? A Practical Guide
Top Architect
Top Architect
Jul 16, 2020 · Fundamentals

Why HashMap Uses a Load Factor of 0.75: Load Factor, Collision Resolution, and the Poisson Distribution

This article explains why Java's HashMap adopts a default load factor of 0.75, describing the concept of load factor, various collision‑resolution strategies such as open addressing and chaining, and how Poisson‑distribution analysis justifies the 0.75 threshold as a balanced trade‑off between space utilization and lookup cost.

HashMapJavaPoisson distribution
0 likes · 11 min read
Why HashMap Uses a Load Factor of 0.75: Load Factor, Collision Resolution, and the Poisson Distribution
Selected Java Interview Questions
Selected Java Interview Questions
Jul 14, 2020 · Backend Development

Deep Dive into Java HashMap: Implementation Details, Internals, and Interview Questions

This article explains the internal design of Java's HashMap—including its default capacity, load factor, underlying array‑list‑tree structure, hash calculation, resizing algorithm, treeification, and common interview questions—while providing complete source code snippets and practical usage tips for developers.

CollectionsData StructuresHashMap
0 likes · 22 min read
Deep Dive into Java HashMap: Implementation Details, Internals, and Interview Questions
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 3, 2020 · Fundamentals

Understanding LRU Cache: Interview Thought Process and Implementation

This article explains why technical interviews focus on problem‑solving skills, outlines a four‑step interview approach, introduces the LRU cache eviction policy, analyzes required operations, selects HashMap plus a doubly linked list as the optimal data structures, and provides a complete Java implementation with detailed commentary.

Cache EvictionDoubly Linked ListHashMap
0 likes · 15 min read
Understanding LRU Cache: Interview Thought Process and Implementation
Java Backend Technology
Java Backend Technology
Jul 1, 2020 · Fundamentals

Why Does Java’s HashMap Use a 0.75 Load Factor? The Math Behind It

This article explains why HashMap relies on a 0.75 load factor, how load factor balances space utilization and collision probability, the various collision‑resolution strategies, and the statistical reasoning—particularly Poisson distribution—that led to choosing 0.75 over other values.

HashMapJavacollision-resolution
0 likes · 12 min read
Why Does Java’s HashMap Use a 0.75 Load Factor? The Math Behind It
Programmer DD
Programmer DD
Jun 27, 2020 · Fundamentals

Why Does Java’s HashMap Use a 0.75 Load Factor? The Math Behind It

This article explains why Java's HashMap adopts a default load factor of 0.75, covering hash table basics, collision‑resolution strategies, the Poisson‑distribution analysis that justifies the value, and the trade‑offs between space efficiency and lookup performance.

Data StructuresHashMapJava
0 likes · 11 min read
Why Does Java’s HashMap Use a 0.75 Load Factor? The Math Behind It
Programmer DD
Programmer DD
Jun 2, 2020 · Backend Development

Mastering Java HashMap & ConcurrentHashMap: Internals, Performance, and Best Practices

This article explains the internal structure and working principles of Java's HashMap and ConcurrentHashMap, covering hash calculations, collision handling, resizing, the transition to red‑black trees, differences with TreeMap, LinkedHashMap, Hashtable, and performance‑related lock mechanisms in JDK 7 and JDK 8.

ConcurrentHashMapData StructureHashMap
0 likes · 14 min read
Mastering Java HashMap & ConcurrentHashMap: Internals, Performance, and Best Practices
Programmer DD
Programmer DD
May 26, 2020 · Backend Development

Deep Dive into Java's ConcurrentHashMap: Implementation, Put & Remove Mechanics

This article thoroughly examines Java's ConcurrentHashMap, covering its evolution from JDK 1.7 segmented locks to JDK 1.8's CAS‑based design, detailing key internal fields, the thread‑safe put and remove operations, and the complex resizing and transfer mechanisms that enable high‑concurrency performance.

ConcurrentHashMapHashMapJava
0 likes · 24 min read
Deep Dive into Java's ConcurrentHashMap: Implementation, Put & Remove Mechanics
Programmer DD
Programmer DD
May 20, 2020 · Backend Development

Top 10 Classic Java Interview Questions Every Developer Should Master

This article presents ten essential Java interview questions covering HashMap internals, fail‑fast vs. fail‑safe iterators, BlockingQueue, ConcurrentHashMap usage, List implementation performance, Iterator vs. ListIterator differences, CopyOnWriteArrayList, Iterator vs. Enumeration, HashMap synchronization, and the distinction between IdentityHashMap and HashMap.

CollectionsHashMapJava
0 likes · 8 min read
Top 10 Classic Java Interview Questions Every Developer Should Master
Programmer DD
Programmer DD
May 15, 2020 · Backend Development

Avoid These Common Java Map Pitfalls: Nulls, Custom Keys, and Concurrency Issues

This article explains why some Map implementations reject null values, how using custom objects as keys can cause unexpected behavior, and why ConcurrentHashMap does not guarantee thread safety for compound operations, offering practical guidelines to prevent these frequent Java collection bugs.

ConcurrentHashMapHashMapJava
0 likes · 10 min read
Avoid These Common Java Map Pitfalls: Nulls, Custom Keys, and Concurrency Issues
Programmer DD
Programmer DD
May 14, 2020 · Backend Development

How Does Java’s HashSet Ensure No Duplicate Elements?

This article explains how Java's HashSet implementation guarantees element uniqueness by internally using a HashMap, detailing its constructors, internal fields, the add method, and the underlying HashMap put and putVal logic that handles collisions and duplicate detection.

CollectionsDuplicateHashMap
0 likes · 6 min read
How Does Java’s HashSet Ensure No Duplicate Elements?
Sohu Tech Products
Sohu Tech Products
May 13, 2020 · Fundamentals

Deep Dive into Java HashMap: Implementation, hashCode/equals, Collision Handling, and Interview Questions

This article provides a comprehensive overview of Java's HashMap, covering its place in the Set and Map families, internal implementation details, the relationship between hashCode() and equals(), collision resolution strategies, basic operations, differences from Hashtable, and several classic interview problems such as Top‑K frequency and LRU cache design.

CollisionData StructuresHashMap
0 likes · 14 min read
Deep Dive into Java HashMap: Implementation, hashCode/equals, Collision Handling, and Interview Questions
Selected Java Interview Questions
Selected Java Interview Questions
May 6, 2020 · Fundamentals

Understanding HashMap Internals: Table Initialization, Resizing, and Load Factor

This article explains the inner workings of Java's HashMap, covering its array‑plus‑linked‑list (or red‑black tree) structure, lazy table initialization, default capacity and threshold, resizing mechanics, the rationale behind power‑of‑two table lengths, index calculation using bitwise AND, and the significance of the 0.75 load factor.

Data StructuresHashMapJava
0 likes · 18 min read
Understanding HashMap Internals: Table Initialization, Resizing, and Load Factor
macrozheng
macrozheng
Apr 29, 2020 · Fundamentals

Mastering Java HashMap: From Basics to Interview Mastery

This article explains the fundamentals of Java's HashMap, covering its relationship to Set and Map families, internal implementation details, hashCode/equals contracts, collision resolution strategies, basic operations with code examples, and common interview questions such as Top‑K and LRU cache design.

Data StructuresHash CollisionHashMap
0 likes · 18 min read
Mastering Java HashMap: From Basics to Interview Mastery
Selected Java Interview Questions
Selected Java Interview Questions
Mar 25, 2020 · Backend Development

Comprehensive Guide to Java HashMap: Structure, Operations, Concurrency Issues, and Interview Insights

This article provides an in‑depth explanation of Java's HashMap, covering its array‑plus‑linked‑list (and tree) structure, default capacity and load factor, constructors, put/get workflows, concurrency pitfalls, differences between Java 7 and 8, and key points to ace interview questions.

Data StructureHashMapJava
0 likes · 8 min read
Comprehensive Guide to Java HashMap: Structure, Operations, Concurrency Issues, and Interview Insights
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 8, 2020 · Fundamentals

Why Java’s HashMap Combines Arrays, Linked Lists, and Red‑Black Trees

This article explains the fundamentals of hash tables, compares their performance with arrays, linked lists, and binary trees, describes how Java's HashMap handles collisions using chaining and treeification, and details the evolution from JDK 7 to JDK 8, including the design of ConcurrentHashMap for thread safety.

ConcurrentHashMapData StructuresHashMap
0 likes · 23 min read
Why Java’s HashMap Combines Arrays, Linked Lists, and Red‑Black Trees
Selected Java Interview Questions
Selected Java Interview Questions
Dec 4, 2019 · Fundamentals

Understanding Java HashMap: Implementation Principles, JDK7 Source Walkthrough, and Interview Insights

This article explains the fundamentals of hash tables, dives deep into Java's HashMap implementation—including JDK7 source code analysis of its internal structures, resizing logic, and key methods—while also covering common interview questions such as why the array size must be a power of two and the necessity of overriding both equals and hashCode.

Data StructuresHashMapJDK7
0 likes · 19 min read
Understanding Java HashMap: Implementation Principles, JDK7 Source Walkthrough, and Interview Insights
Selected Java Interview Questions
Selected Java Interview Questions
Dec 3, 2019 · Fundamentals

Key Java Collection Framework Interview Questions and Answers

This article provides concise English explanations for common Java collection interview questions, covering differences between HashMap and Hashtable, internal structures, thread‑safety, ArrayList vs LinkedList vs Vector, Array vs ArrayList, HashSet implementation, and the distinctions among List, Set, and Map.

ArrayListCollectionsHashMap
0 likes · 11 min read
Key Java Collection Framework Interview Questions and Answers
Programmer DD
Programmer DD
Nov 25, 2019 · Fundamentals

Top 10 Java Mistakes Every Developer Should Avoid

This article lists the ten most common errors Java developers make, explains why each is problematic, and provides clear code examples and best‑practice alternatives to help you write safer, more efficient Java code.

ArrayListCollectionsHashMap
0 likes · 11 min read
Top 10 Java Mistakes Every Developer Should Avoid
Java Captain
Java Captain
Nov 23, 2019 · Fundamentals

Understanding LinkedHashMap Order and LRU Cache Implementation in Java

LinkedHashMap extends HashMap by maintaining a doubly linked list to preserve insertion or access order, allowing optional LRU cache behavior via the accessOrder flag, and its source code shows how entries are linked, reordered on get, and how to override removeEldestEntry for eviction.

AccessOrderDataStructureHashMap
0 likes · 8 min read
Understanding LinkedHashMap Order and LRU Cache Implementation in Java
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 20, 2019 · Fundamentals

Understanding the Differences Between TreeSet, HashSet, HashMap, TreeMap, and Red-Black Trees in Java

An interview-style dialogue explains the distinctions between TreeSet and HashSet, the underlying implementations of HashMap versus TreeMap, and how red‑black trees provide balanced performance, covering hash collisions, treeification, and thread‑safety considerations in Java collections.

CollectionsData StructuresHashMap
0 likes · 6 min read
Understanding the Differences Between TreeSet, HashSet, HashMap, TreeMap, and Red-Black Trees in Java
Selected Java Interview Questions
Selected Java Interview Questions
Oct 10, 2019 · Fundamentals

Choosing Between HashMap and TreeMap in Java

This article explains the differences between Java's HashMap and TreeMap, covering their underlying implementations, performance characteristics, ordering behavior, and how to use a custom comparator to achieve descending order, helping developers choose the appropriate map based on ordering and efficiency needs.

CollectionsComparatorData Structures
0 likes · 8 min read
Choosing Between HashMap and TreeMap in Java
Programmer DD
Programmer DD
Aug 8, 2019 · Backend Development

Why Overriding hashCode and equals Is Critical: Avoid Memory Leaks and Bucket Chaos in Java

This article explains the contract between hashCode() and equals() in Java, shows the problems caused by violating it—such as incorrect behavior in HashMap/HashSet and memory leaks—and provides practical guidelines and code examples for implementing robust hashCode methods, including the use of Apache's HashCodeBuilder.

HashMapImmutable ObjectsJava
0 likes · 15 min read
Why Overriding hashCode and equals Is Critical: Avoid Memory Leaks and Bucket Chaos in Java
Alibaba Cloud Native
Alibaba Cloud Native
May 14, 2019 · Databases

How We Cut etcd’s Storage Latency from Seconds to Milliseconds at 100 GB Scale

This article explains why Alibaba needed to boost etcd’s storage capacity, analyzes the bottleneck caused by BoltDB’s freelist spill operation, presents a hash‑based redesign that reduces allocation and release from O(n) to O(1), and shows benchmark results confirming dramatic latency improvements for large‑scale deployments.

HashMapPerformance Optimizationetcd
0 likes · 12 min read
How We Cut etcd’s Storage Latency from Seconds to Milliseconds at 100 GB Scale
Java Captain
Java Captain
Mar 16, 2019 · Fundamentals

Common Java Containers and Their Differences

This article explains the most frequently used Java containers, clarifies the distinctions between Collection and Collections, compares List, Set, and Map, and details the implementation principles and usage differences of HashMap, HashSet, ArrayList, LinkedList, and related collection classes.

ArrayListCollectionsHashMap
0 likes · 9 min read
Common Java Containers and Their Differences
Big Data Technology & Architecture
Big Data Technology & Architecture
Feb 15, 2019 · Fundamentals

Understanding Java 8 HashMap and ConcurrentHashMap Internals

This article provides an in‑depth tutorial on Java 8’s HashMap and ConcurrentHashMap implementations, explaining their internal structures, red‑black tree conversion, resizing mechanisms, and step‑by‑step code analysis of put, get, and initialization processes, essential for interview preparation.

ConcurrentHashMapData StructuresHashMap
0 likes · 13 min read
Understanding Java 8 HashMap and ConcurrentHashMap Internals
Big Data Technology & Architecture
Big Data Technology & Architecture
Feb 15, 2019 · Fundamentals

Deep Dive into Java HashMap and ConcurrentHashMap: Implementation, Operations, and Concurrency Mechanics

This article provides a comprehensive, step‑by‑step explanation of Java 7 HashMap and ConcurrentHashMap internals, covering their data structures, put/get algorithms, array initialization, resizing, segment locking, rehashing, and the concurrency considerations that ensure thread‑safe access.

ConcurrentHashMapData StructuresHashMap
0 likes · 22 min read
Deep Dive into Java HashMap and ConcurrentHashMap: Implementation, Operations, and Concurrency Mechanics
Big Data Technology & Architecture
Big Data Technology & Architecture
Feb 14, 2019 · Fundamentals

In‑Depth Analysis of Java HashMap Implementation and Usage

This article provides a comprehensive overview of Java's HashMap, covering its purpose as a key‑value store, the evolution of its internal data structures from JDK 1.7 to JDK 1.8, detailed explanations of core methods such as hash, put, get, resize, and practical example code illustrating common operations.

CollectionsData StructureHashMap
0 likes · 18 min read
In‑Depth Analysis of Java HashMap Implementation and Usage
Java Captain
Java Captain
Feb 6, 2019 · Fundamentals

Understanding HashMap and ConcurrentHashMap in Java (JDK 1.7 and 1.8)

This article explains the internal structures and core methods of Java's HashMap and ConcurrentHashMap across JDK 1.7 and 1.8, detailing array‑linked list implementations, load factor handling, resizing, treeification, concurrency mechanisms, and performance considerations with extensive code examples.

ConcurrentHashMapHashMapJava
0 likes · 19 min read
Understanding HashMap and ConcurrentHashMap in Java (JDK 1.7 and 1.8)
Java Captain
Java Captain
Jan 14, 2019 · Fundamentals

Understanding Java HashMap: Principles, Operations, and Interview Insights

This article explains the fundamentals of Java's HashMap, covering its internal structure, hash computation, insertion and retrieval processes, collision handling, resizing, thread‑safety concerns, differences with Hashtable, and practical interview questions with code examples.

CollectionsHashMapJava
0 likes · 17 min read
Understanding Java HashMap: Principles, Operations, and Interview Insights
Java Captain
Java Captain
Dec 31, 2018 · Fundamentals

Common Java Data Structures and Their Core Operations

This article systematically explains the most frequently used Java data structures—including LinkedList, ArrayList, Stack, Queue, HashMap, and LinkedHashMap—detailing their internal implementations, typical operations, performance characteristics, and providing illustrative code snippets and animations.

ArrayListHashMapJava
0 likes · 8 min read
Common Java Data Structures and Their Core Operations
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Nov 14, 2018 · Fundamentals

Implementation Principles of ConcurrentHashMap (CurrentHashMap) in JDK 1.7 and JDK 1.8

This article explains the underlying principles of hash tables, compares HashMap, Hashtable and ConcurrentHashMap, and details the architectural differences of ConcurrentHashMap in JDK 1.7 (segment‑based locking) versus JDK 1.8 (array‑list‑tree with CAS), including code examples and performance trade‑offs.

ConcurrentHashMapHashMapJDK1.7
0 likes · 8 min read
Implementation Principles of ConcurrentHashMap (CurrentHashMap) in JDK 1.7 and JDK 1.8
Beike Product & Technology
Beike Product & Technology
Aug 3, 2018 · Fundamentals

Understanding Java HashMap Optimizations in JDK 1.8

This article explains the fundamental principles of Java's HashMap, covering hash basics, time‑complexity of operations, the role of load factor and initial capacity, the resize algorithm without full rehashing, and the treeification of long buckets, illustrated with JDK 1.8 source code examples.

Data StructuresHashMapJDK8
0 likes · 16 min read
Understanding Java HashMap Optimizations in JDK 1.8
Senior Brother's Insights
Senior Brother's Insights
Jul 23, 2018 · Fundamentals

HashMap vs ConcurrentHashMap: Deep Dive into JDK 1.7 and 1.8 Implementations

This article explains the internal structures of HashMap and ConcurrentHashMap in Java, compares their JDK 1.7 and JDK 1.8 implementations, walks through the put and get algorithms with code examples, highlights performance optimizations such as treeification, and shows why ConcurrentHashMap is needed for thread‑safe access.

ConcurrentHashMapHashMapJava
0 likes · 21 min read
HashMap vs ConcurrentHashMap: Deep Dive into JDK 1.7 and 1.8 Implementations
Java Captain
Java Captain
Jul 18, 2018 · Fundamentals

Understanding Java Collections: LinkedList, ArrayList, Stack, Queue, HashMap, and LinkedHashMap with Animations and Code Examples

This article systematically explains common Java collection classes—including LinkedList, ArrayList, Stack, Queue, HashMap, and LinkedHashMap—highlighting their internal structures, key operations, performance characteristics, and JDK 8 differences, and it provides animated illustrations and full code snippets for each concept.

ArrayListCollectionsData Structures
0 likes · 9 min read
Understanding Java Collections: LinkedList, ArrayList, Stack, Queue, HashMap, and LinkedHashMap with Animations and Code Examples
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 16, 2018 · Fundamentals

Overview of the Java Collections Framework and Its Core Data Structures

This article provides a comprehensive overview of the Java Collections Framework, detailing its core interfaces, common implementations such as List, Set, Queue, and Map, their underlying data structures, performance characteristics, and usage examples including legacy classes and specialized collections like PriorityQueue and LinkedHashMap.

ArrayListCollectionsData Structures
0 likes · 8 min read
Overview of the Java Collections Framework and Its Core Data Structures
Java Architect Essentials
Java Architect Essentials
Jul 11, 2018 · Backend Development

Understanding Java HashMap hashCode and Hash Algorithm

This article explains the fundamentals of binary operations, why hashCode is used, how Java's String hashCode is implemented, the rationale behind using the multiplier 31, and the detailed workings of HashMap's hash function, index calculation, capacity choices, and custom sizing recommendations.

Data StructuresHashMaphash algorithm
0 likes · 13 min read
Understanding Java HashMap hashCode and Hash Algorithm
Java Captain
Java Captain
Jun 22, 2018 · Fundamentals

Understanding HashMap Internals and Building a Miniature HashMap in Java

This article explains the core design of Java's HashMap—including its hash function, array storage, and linked‑list collision handling—and walks through creating a simplified MiniHashMap implementation with interfaces, constructors, put/get methods, resizing, and testing.

AlgorithmsCollectionsData Structures
0 likes · 5 min read
Understanding HashMap Internals and Building a Miniature HashMap in Java
Java Captain
Java Captain
Apr 21, 2018 · Fundamentals

Deep Dive into Java HashMap: Source Code Analysis and Design Concepts

This article provides a comprehensive analysis of Java's HashMap implementation, covering its class signature, inheritance hierarchy, hash function design, core operations such as get, put, and remove, internal data structures, resizing logic, iterator behavior, and serialization details, all illustrated with original source code snippets.

AlgorithmsCollectionsData Structures
0 likes · 24 min read
Deep Dive into Java HashMap: Source Code Analysis and Design Concepts
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Mar 19, 2018 · Fundamentals

Master Java Interview Essentials: JVM, Collections, Concurrency, and System Fundamentals

This article provides concise explanations of core Java and system concepts—including JVM class loading, HashMap implementation, concurrency utilities, IPC mechanisms, garbage collection, sorting algorithms, networking protocols, Linux scheduling, deadlock conditions, hashing techniques, and database normalization—useful for technical interviews and foundational study.

Data StructuresHashMapJVM
0 likes · 25 min read
Master Java Interview Essentials: JVM, Collections, Concurrency, and System Fundamentals
Java Architect Essentials
Java Architect Essentials
Mar 5, 2018 · Fundamentals

Common Data Structures in Java: Arrays, Lists, Queues, Stacks, Sets, Maps, Trees, and Heaps

This article introduces fundamental data structures such as arrays, linked lists, queues, stacks, sets, maps, various tree types including binary and AVL trees, and heaps, explaining their characteristics, time complexities, Java implementations like ArrayList, LinkedList, HashSet, TreeMap, and providing illustrative diagrams and code snippets.

AVL treeAlgorithmsHashMap
0 likes · 23 min read
Common Data Structures in Java: Arrays, Lists, Queues, Stacks, Sets, Maps, Trees, and Heaps
Java Captain
Java Captain
Nov 23, 2017 · Fundamentals

Common Java Collection Mistakes and Best Practices

This article explains ten frequent Java pitfalls—including array‑to‑list conversion, containment checks, element removal during iteration, Hashtable vs. HashMap, raw types, access modifiers, List implementations, mutability, constructor issues, and string creation—and provides clear, correct code examples for each.

ArrayListHashMapprogramming
0 likes · 9 min read
Common Java Collection Mistakes and Best Practices
Java Captain
Java Captain
Nov 20, 2017 · Fundamentals

Differences Between Java HashMap and Hashtable

This article explains the key distinctions between Java's HashMap and Hashtable, covering thread safety, synchronization, null handling, iterator behavior, performance implications, and how to achieve synchronization for HashMap, helping readers prepare for interview questions on the Java collections framework.

Data StructuresHashMaphashtable
0 likes · 5 min read
Differences Between Java HashMap and Hashtable
Java Captain
Java Captain
Aug 22, 2017 · Fundamentals

Understanding Java HashMap: Overview, Data Structure, and Source Code Analysis

This article explains Java's HashMap implementation, covering its inheritance, thread‑safety options, key parameters such as initial capacity and load factor, internal array‑plus‑linked‑list structure, core source‑code snippets, and the algorithms for hashing, indexing, insertion, resizing, and iteration.

Data StructureHashMap
0 likes · 25 min read
Understanding Java HashMap: Overview, Data Structure, and Source Code Analysis
Liulishuo Tech Team
Liulishuo Tech Team
Mar 10, 2017 · Fundamentals

Understanding HashMap Implementations: A Comparative Analysis of Hash Tables and HAMT

This article explores two fundamental implementations of the HashMap data structure, comparing traditional Hash Tables with Hash Array Mapped Tries (HAMT), while analyzing their collision resolution strategies, hash functions, time and space complexities, and practical applications in modern programming languages like Ruby and functional paradigms.

Data StructuresHAMTHashMap
0 likes · 12 min read
Understanding HashMap Implementations: A Comparative Analysis of Hash Tables and HAMT
ITPUB
ITPUB
Nov 12, 2015 · Fundamentals

Essential Differences and Usage Tips for Java Collections

This article explains why Map does not extend Collection, compares HashMap with Hashtable, clarifies Comparable versus Comparator, shows how to sort object lists, distinguishes fail‑fast from fail‑safe iterators, and outlines key differences among Set, List, ArrayList, Vector, and related Java collection classes.

ArrayListCollectionsHashMap
0 likes · 7 min read
Essential Differences and Usage Tips for Java Collections
Qunar Tech Salon
Qunar Tech Salon
Jun 3, 2015 · Fundamentals

Understanding HashMap ConcurrentModificationException and Using ConcurrentHashMap in Java

This article explains why iterating and removing entries from a HashMap throws ConcurrentModificationException, describes the internal iterator mechanism, and provides correct solutions using an Iterator or replacing HashMap with ConcurrentHashMap, including detailed explanations of ConcurrentHashMap's structure and its get, put, remove, size, and iteration implementations.

CollectionsConcurrentHashMapConcurrentModificationException
0 likes · 11 min read
Understanding HashMap ConcurrentModificationException and Using ConcurrentHashMap in Java