Skip to content

collections

serhij.zolotukhin edited this page Jun 29, 2026 · 1 revision

🔹 Java Collections & Performance What is the internal structure of HashMap? How do you improve performance in large-scale Java apps? What is LinkedHashMap? How does it maintain order? How does ConcurrentHashMap avoid locking the whole map? Difference between fail-fast and fail-safe iterators?

🔹 Collections and Concurrency How does HashMap grow internally after Java 8? Why is ConcurrentHashMap faster than Hashtable? When does CopyOnWriteArrayList work well and when does it fail? Why is the size operation slow in ConcurrentHashMap? How does WeakHashMap remove keys automatically?

My side bar

Clone this wiki locally