Tagged articles
3 articles
Page 1 of 1
Lin is Dream
Lin is Dream
Mar 12, 2025 · Fundamentals

Unlocking Java’s HashMap: How Hash Functions Power Fast Lookups

This article explains the fundamentals of hash structures, hash functions, and Java collection implementations such as HashMap, LinkedHashMap, and ConcurrentHashMap, covering their design, collision handling, performance characteristics, and how Redis extends these concepts to a distributed environment.

Data StructuresHashMaphash function
0 likes · 12 min read
Unlocking Java’s HashMap: How Hash Functions Power Fast Lookups
Java Architect Essentials
Java Architect Essentials
Mar 19, 2023 · Backend Development

Why Arrays.asList and subList Can Throw Unexpected Exceptions in Java

This article explains the hidden pitfalls of Java's Arrays.asList and ArrayList.subList methods, showing how fixed‑size lists cause UnsupportedOperationException, how subList creates a mutable view that can trigger ConcurrentModificationException, and provides concrete code examples and source‑code analysis.

Arrays.asListConcurrentModificationExceptionJava
0 likes · 10 min read
Why Arrays.asList and subList Can Throw Unexpected Exceptions in Java