Tagged articles
15 articles
Page 1 of 1
Java Architect Essentials
Java Architect Essentials
Oct 18, 2022 · Fundamentals

Common Pitfalls When Using Java List Implementations and How to Avoid Them

This article systematically examines ten typical pitfalls encountered when converting arrays to lists, performing add/remove operations, using subList, handling memory consumption, and working with thread‑safe collections such as CopyOnWriteArrayList in Java, and provides concrete code‑level solutions and performance recommendations.

ArrayListCopyOnWriteArrayListLinkedList
0 likes · 20 min read
Common Pitfalls When Using Java List Implementations and How to Avoid Them
Java High-Performance Architecture
Java High-Performance Architecture
Oct 17, 2022 · Backend Development

10 Hidden Pitfalls of Java List Implementations and How to Avoid Them

This article examines common traps when using Java List structures such as Arrays.asList, ArrayList, LinkedList, and CopyOnWriteArrayList, explains why they occur, and provides practical solutions—including proper conversion, avoiding unsupported operations, handling subList references, and mitigating memory and concurrency issues.

ArrayListArrays.asListCopyOnWriteArrayList
0 likes · 19 min read
10 Hidden Pitfalls of Java List Implementations and How to Avoid Them
Java Backend Technology
Java Backend Technology
Sep 19, 2022 · Fundamentals

Why Your Java List Operations May Fail: Hidden Pitfalls and Fixes

This article reveals common pitfalls when using Java List implementations—such as Arrays.asList with primitive arrays, unsupported add/remove operations, side‑effects on the original array, subList memory leaks, LinkedList performance myths, and CopyOnWriteArrayList’s memory and iterator quirks—while providing practical solutions and best‑practice recommendations.

ArrayListCollectionsCopyOnWriteArrayList
0 likes · 19 min read
Why Your Java List Operations May Fail: Hidden Pitfalls and Fixes
Programmer DD
Programmer DD
Oct 19, 2020 · Fundamentals

ArrayList vs LinkedList: When Each Data Structure Truly Shines

This article benchmarks Java's ArrayList and LinkedList by measuring insertion and lookup times at the head, tail, and middle of a list with 100,000 elements, then explains the underlying source‑code mechanisms that cause the observed performance differences.

BenchmarkData StructuresJava
0 likes · 10 min read
ArrayList vs LinkedList: When Each Data Structure Truly Shines
Programmer DD
Programmer DD
Aug 7, 2020 · Backend Development

Why ArrayList Beats LinkedList with RandomAccess: Performance Insights

This article explains why ArrayList implements the RandomAccess marker interface while LinkedList does not, shows how Java's Collections.binarySearch chooses different algorithms based on this interface, and presents benchmark results that reveal the most efficient traversal method for each list type.

ArrayListCollectionsLinkedList
0 likes · 7 min read
Why ArrayList Beats LinkedList with RandomAccess: Performance Insights
Selected Java Interview Questions
Selected Java Interview Questions
Nov 11, 2019 · Fundamentals

Performance Comparison of Java ArrayList and LinkedList

This article explains the differences between Java's ArrayList and LinkedList, detailing their internal implementations, performance characteristics for adding, inserting, deleting, and iterating elements, and provides code examples and benchmark results to guide when to choose each collection.

ArrayListData StructuresJava
0 likes · 11 min read
Performance Comparison of Java ArrayList and LinkedList
Java Captain
Java Captain
Jan 28, 2019 · Fundamentals

Understanding ArrayList and LinkedList Internals During a Java Interview

The article recounts a Java interview where the interviewer explains the memory layout, random‑access capability, and time‑complexity differences between ArrayList (array‑based) and LinkedList (node‑based), using clear examples and code snippets to illustrate fundamental data‑structure concepts.

ArrayListJavaLinkedList
0 likes · 8 min read
Understanding ArrayList and LinkedList Internals During a Java Interview
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
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