Companion code for the ankurm.com post "Top 40 Java Collections Interview Questions (HashMap Internals to Fail-Fast Iterators)". Verified against JDK 25's own HashMap source (TREEIFY_THRESHOLD=8, UNTREEIFY_THRESHOLD=6, MIN_TREEIFY_CAPACITY=64), with every claim backed by a committed docs/output/*.txt transcript from a real run. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YXCrLgRKFgCh9RHKW8xaqJ
6 lines
159 B
Plaintext
6 lines
159 B
Plaintext
reflection succeeded: 2 non-empty bucket(s)
|
|
table.length = 16 | non-empty buckets = 2
|
|
bucket[ 7] chain=1 kind=Node
|
|
bucket[ 14] chain=1 kind=Node
|
|
|