Tagged articles
58 articles
Page 1 of 1
IT Services Circle
IT Services Circle
Dec 14, 2025 · Backend Development

What Lenovo Backend Interview Reveals: Salary Insights, Deadlock Basics, DNS, TLS Handshake, and Java ArrayList Deep Dive

This article shares Lenovo's 2026 graduate hiring salary breakdown, explains deadlock conditions and prevention, outlines DNS resolution steps, details the TLS handshake process, and provides an in‑depth guide to Java's ArrayList implementation, performance, and thread‑safety concerns.

ArrayListDNSTLS Handshake
0 likes · 18 min read
What Lenovo Backend Interview Reveals: Salary Insights, Deadlock Basics, DNS, TLS Handshake, and Java ArrayList Deep Dive
Java Backend Technology
Java Backend Technology
Jun 14, 2025 · Backend Development

Why Arrays.asList() Can Crash Your Java App and How to Fix It

This article explains why using Java's Arrays.asList() to convert an array into a List can cause UnsupportedOperationException at runtime, illustrates the hidden fixed‑size list implementation, shows the severe impact on an e‑commerce system, and provides a safe solution using java.util.ArrayList to avoid such crashes.

ArrayListArrays.asListCollections
0 likes · 8 min read
Why Arrays.asList() Can Crash Your Java App and How to Fix It
Architect's Guide
Architect's Guide
Mar 26, 2025 · Fundamentals

Avoiding the Fixed‑Size List Pitfall of Arrays.asList in Java

This article explains why using Arrays.asList to convert an array into a List can produce an immutable, fixed‑size list that throws UnsupportedOperationException on add or remove operations, illustrates the issue with real‑world incident details, analyzes the internal implementation, and provides a safe replacement using java.util.ArrayList.

ArrayListArrays.asListCollections
0 likes · 9 min read
Avoiding the Fixed‑Size List Pitfall of Arrays.asList in Java
macrozheng
macrozheng
Feb 10, 2025 · Backend Development

Why Arrays.asList() Can Crash Your Java App and How to Fix It

This article explains how using Arrays.asList() to convert an array into a List creates a fixed‑size collection that throws UnsupportedOperationException on add or remove operations, illustrates the issue with a real e‑commerce incident, and shows how to safely wrap the result with a mutable java.util.ArrayList.

ArrayListArrays.asListCollections
0 likes · 9 min read
Why Arrays.asList() Can Crash Your Java App and How to Fix It
IT Services Circle
IT Services Circle
Jan 10, 2024 · Backend Development

Why Using forEach to Remove Elements from an ArrayList Throws ConcurrentModificationException and How to Delete Safely

The article explains why iterating an ArrayList with forEach and removing elements causes a ConcurrentModificationException, analyzes the underlying fail‑fast iterator behavior, and presents three correct ways—using Iterator.remove, removeIf, and collecting then removing—to delete elements safely.

ArrayListConcurrentModificationExceptionIterator
0 likes · 4 min read
Why Using forEach to Remove Elements from an ArrayList Throws ConcurrentModificationException and How to Delete Safely
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 20, 2023 · Fundamentals

Understanding Java List.remove Overloads and the Pitfalls of Arrays.asList

This article explains the overloaded remove methods in Java's List interface, demonstrates common mistakes when removing elements from ArrayList, clarifies the behavior of Arrays.asList with primitive arrays versus object arrays, and highlights related issues such as unsupported add/remove operations and index‑based deletions.

ArrayListArrays.asListList
0 likes · 10 min read
Understanding Java List.remove Overloads and the Pitfalls of Arrays.asList
Programmer DD
Programmer DD
May 11, 2023 · Backend Development

Why Java’s ArrayList addAll Fails Under Concurrency and How to Fix It

This article explains the importance and challenges of concurrent programming, details Java's memory model and synchronization primitives, analyzes a real‑world case where concurrent addAll on ArrayList caused missing UI elements, and demonstrates how using thread‑safe collections resolves the issue.

ArrayListJMMconcurrency
0 likes · 14 min read
Why Java’s ArrayList addAll Fails Under Concurrency and How to Fix It
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
Java Backend Technology
Java Backend Technology
Jun 28, 2022 · Backend Development

Why ArrayList.subList Can Leak Memory, Loop Forever, and Crash Your Java App

This article explains how improper use of Java's ArrayList.subList can cause hidden memory leaks, infinite loops, ConcurrentModificationExceptions, and serialization failures in RPC frameworks, and provides concrete best‑practice solutions such as copying to a new list or using stream operations.

ArrayListConcurrentModificationExceptionSubList
0 likes · 9 min read
Why ArrayList.subList Can Leak Memory, Loop Forever, and Crash Your Java App
Senior Brother's Insights
Senior Brother's Insights
Jun 13, 2022 · Fundamentals

Why Does Java’s ArrayList Default to a Capacity of 10?

This article explains why Java’s ArrayList uses a default initial capacity of 10, contrasts it with HashMap’s 16‑element default, and walks through the lazy‑initialization logic and growth algorithm that keep the capacity at ten until the first element is added.

ArrayListData StructuresDefault Capacity
0 likes · 9 min read
Why Does Java’s ArrayList Default to a Capacity of 10?
Programmer DD
Programmer DD
Oct 24, 2021 · Fundamentals

Why Adding or Removing Elements Inside a Java foreach Loop Fails

This article explains why modifying a collection during a Java foreach loop triggers a ConcurrentModificationException, explores the underlying fail‑fast mechanism in ArrayList, and demonstrates safe alternatives such as using an Iterator's remove method or a CopyOnWriteArrayList.

ArrayListConcurrentModificationExceptionIterator
0 likes · 9 min read
Why Adding or Removing Elements Inside a Java foreach Loop Fails
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 25, 2021 · Fundamentals

Overview of Java Collection Framework and Core Concepts

This article provides a comprehensive overview of Java collections, covering the definition, characteristics, differences from arrays, advantages, common collection classes, underlying data structures, fail‑fast mechanism, detailed List, Set, Queue, and Map interfaces, as well as HashMap and ConcurrentHashMap implementations and best practices.

ArrayListCollectionsData Structures
0 likes · 30 min read
Overview of Java Collection Framework and Core Concepts
Java Tech Enthusiast
Java Tech Enthusiast
Aug 29, 2021 · Fundamentals

Java ArrayList: Constructors, add/addAll, set/get, and Iterator Mechanics

Java’s ArrayList offers a no‑arg constructor initializing an empty internal array, lazy default capacity of ten, and overloads for initial capacity or collection copying; its add/addAll methods ensure and grow capacity, set/get access elements, and its iterator tracks modCount to detect concurrent modifications.

ArrayListCollectionsDataStructure
0 likes · 16 min read
Java ArrayList: Constructors, add/addAll, set/get, and Iterator Mechanics
JavaEdge
JavaEdge
Jul 3, 2021 · Backend Development

Mastering Java's Iterator: Simplify Collection Traversal and Internals

This article explains Java's Iterator pattern, compares it with traditional loop approaches, shows how it abstracts collection traversal, details the Iterator interface methods, and walks through the internal ArrayList iterator implementation with code examples and diagrams.

ArrayListBackendCollections
0 likes · 7 min read
Mastering Java's Iterator: Simplify Collection Traversal and Internals
Selected Java Interview Questions
Selected Java Interview Questions
Jun 4, 2021 · Fundamentals

Why Removing Elements During forEach on an ArrayList Triggers ConcurrentModificationException and How to Fix It

The article explains that deleting elements from an ArrayList inside a forEach loop can cause a ConcurrentModificationException because the iterator's expected modification count diverges from the actual count, and it shows correct ways to remove items safely using an explicit Iterator or a CopyOnWriteArrayList.

ArrayListConcurrentModificationExceptionCopyOnWriteArrayList
0 likes · 5 min read
Why Removing Elements During forEach on an ArrayList Triggers ConcurrentModificationException and How to Fix It
Java Backend Technology
Java Backend Technology
Jun 1, 2021 · Fundamentals

Why Arrays.asList and subList Can Surprise You: Hidden Pitfalls

This article examines common pitfalls when using Java's Arrays.asList and ArrayList.subList methods, explaining why add operations throw UnsupportedOperationException, how subList creates a view that links modifications between original and sublists, and offers best‑practice recommendations to avoid runtime errors.

ArrayListArrays.asListCollections
0 likes · 9 min read
Why Arrays.asList and subList Can Surprise You: Hidden Pitfalls
Architecture Digest
Architecture Digest
Apr 16, 2021 · Backend Development

Five Methods to Remove Duplicates from a Java ArrayList

This article presents five distinct techniques for eliminating duplicate elements from a Java ArrayList, including using LinkedHashSet, Java 8 Stream distinct, HashSet with order preservation, manual contains checks, and a double‑for‑loop approach, each accompanied by complete code examples and output results.

ArrayListCollectionsStream
0 likes · 6 min read
Five Methods to Remove Duplicates from a Java ArrayList
Top Architect
Top Architect
Feb 10, 2021 · Backend Development

Understanding Thread Safety Issues in Java ArrayList and How to Fix Them

This article explains why Java's ArrayList is not thread‑safe, illustrates the two main concurrency problems—array index out‑of‑bounds and element overwriting—through source‑code analysis and multithreaded examples, and presents several practical solutions such as synchronized wrappers, explicit locking, CopyOnWriteArrayList and ThreadLocal.

ArrayListCollectionsCopyOnWriteArrayList
0 likes · 11 min read
Understanding Thread Safety Issues in Java ArrayList and How to Fix Them
Top Architect
Top Architect
Jan 29, 2021 · Fundamentals

Five Ways to Remove Duplicates from a Java ArrayList

This article presents five distinct methods for eliminating duplicate elements from a Java ArrayList, including using LinkedHashSet, Java 8 streams, HashSet with order preservation, manual iteration with contains checks, and nested loops, each accompanied by complete code examples and output results.

ArrayListStreamsduplicate removal
0 likes · 6 min read
Five Ways to Remove Duplicates from a Java ArrayList
Programmer DD
Programmer DD
Nov 28, 2020 · Backend Development

5 Simple Ways to Remove Duplicates from a Java ArrayList

This article demonstrates five distinct techniques for eliminating duplicate entries from a Java ArrayList, including using LinkedHashSet, Java 8 streams, HashSet with order preservation, manual contains checks, and nested loops, each accompanied by complete code examples and output results.

ArrayListCollectionsStream
0 likes · 5 min read
5 Simple Ways to Remove Duplicates from a Java ArrayList
Java Captain
Java Captain
Nov 2, 2020 · Fundamentals

Comparing Three Ways to Convert Java Arrays to List and Their Use Cases

This article compares three common methods for converting Java arrays to List—Arrays.asList, using an ArrayList constructor, and Collections.addAll—detailing their advantages, limitations, performance, and appropriate scenarios, while also explaining common type conversion errors and best practices for primitive and wrapper types.

ArrayArrayListArrays.asList
0 likes · 8 min read
Comparing Three Ways to Convert Java Arrays to List and Their Use Cases
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.

ArrayListHashMapconcurrency
0 likes · 16 min read
Understanding Thread Safety Issues in Java Collections: ArrayList, HashSet, HashMap and Their Solutions
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
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 26, 2020 · Backend Development

Common Java Collection Framework Interview Questions and Answers

This article reviews the most frequently asked Java collection framework interview questions, covering differences between ArrayList, LinkedList, Vector, ArrayDeque, HashSet, HashMap, Hashtable, and the distinction between Collection and Collections, while explaining underlying implementations and performance considerations.

ArrayListCollectionsperformance
0 likes · 11 min read
Common Java Collection Framework Interview Questions and Answers
Selected Java Interview Questions
Selected Java Interview Questions
Jul 17, 2020 · Fundamentals

Deep Dive into Java ArrayList: Implementation, Thread Safety, and Common Operations

This article provides an in‑depth explanation of Java's ArrayList, covering its purpose, lack of thread safety, detailed source‑code analysis of fields, constructors and core methods, serialization mechanics, capacity handling, and a simplified hand‑written implementation for interview preparation.

ArrayListCodingInterviewCollections
0 likes · 13 min read
Deep Dive into Java ArrayList: Implementation, Thread Safety, and Common Operations
Programmer DD
Programmer DD
Jun 16, 2020 · Backend Development

Which Java ArrayList Traversal Is Fastest? Benchmarks and Best Practices

This article explains Java's ArrayList structure, compares four traversal methods with benchmark code, analyzes their performance across different list sizes, and outlines safe deletion techniques and common pitfalls such as subList casting and concurrency issues.

ArrayListDeletionTraversal
0 likes · 10 min read
Which Java ArrayList Traversal Is Fastest? Benchmarks and Best Practices
Java Backend Technology
Java Backend Technology
Jun 13, 2020 · Fundamentals

Why Does foreach Throw ConcurrentModificationException and How to Fix It?

During a Java interview, a common mistake of using a foreach loop to remove elements from an ArrayList triggers a ConcurrentModificationException; this article explains the underlying iterator mechanism, shows the bytecode behavior, and presents four safe alternatives—including iterator.remove(), forward and backward for-loops—to avoid the error.

ArrayListConcurrentModificationExceptionIterator
0 likes · 7 min read
Why Does foreach Throw ConcurrentModificationException and How to Fix It?
Architect's Tech Stack
Architect's Tech Stack
Jun 7, 2020 · Backend Development

How to Avoid java.util.ConcurrentModificationException When Removing Elements from a List

This article explains why a foreach loop over an ArrayList can throw java.util.ConcurrentModificationException when removing elements, analyzes the underlying iterator mechanism, and presents three safe alternatives—using Iterator.remove(), a forward-index for loop with index correction, and a reverse for loop—to modify collections without errors.

/loopArrayListConcurrentModificationException
0 likes · 7 min read
How to Avoid java.util.ConcurrentModificationException When Removing Elements from a List
FunTester
FunTester
May 6, 2020 · Fundamentals

Understanding Shallow vs Deep Copy in Java ArrayList: Code Examples and Pitfalls

This article explains how Java's ArrayList.clone() creates a shallow copy that shares object references, demonstrates the resulting behavior with string and custom object lists, and shows how to implement a deep copy by manually cloning each element, complete with runnable code samples and console output.

ArrayListTutorialclone
0 likes · 7 min read
Understanding Shallow vs Deep Copy in Java ArrayList: Code Examples and Pitfalls
Selected Java Interview Questions
Selected Java Interview Questions
Apr 27, 2020 · Fundamentals

How to Remove Elements from a List Without Causing java.util.ConcurrentModificationException

This article explains why removing items from a Java List inside a foreach loop triggers a ConcurrentModificationException and demonstrates three correct approaches—using Iterator.remove(), a forward indexed for loop with index correction, and a reverse for loop—each with full code examples and output.

ArrayListConcurrentModificationExceptionIterator
0 likes · 6 min read
How to Remove Elements from a List Without Causing java.util.ConcurrentModificationException
Java Backend Technology
Java Backend Technology
Mar 23, 2020 · Fundamentals

Why Removing Elements in a Java foreach Loop Can Crash Your Code

This article explains why using a foreach loop to remove items from a Java ArrayList can trigger a ConcurrentModificationException, analyzes the underlying iterator mechanism, and shows the correct way to modify collections safely with an explicit Iterator.

ArrayListCollectionsConcurrentModificationException
0 likes · 5 min read
Why Removing Elements in a Java foreach Loop Can Crash Your Code
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
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 StructuresLinkedList
0 likes · 11 min read
Performance Comparison of Java ArrayList and LinkedList
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 14, 2019 · Fundamentals

Differences Between Java List Implementations: ArrayList, LinkedList, Vector, and Stack

This article provides a detailed comparison of Java's List interface implementations—ArrayList, LinkedList, Vector, and Stack—explaining their underlying data structures, key methods such as get, set, add, and remove, performance characteristics, thread safety, and appropriate usage scenarios.

ArrayListData StructuresLinkedList
0 likes · 18 min read
Differences Between Java List Implementations: ArrayList, LinkedList, Vector, and Stack
Beike Product & Technology
Beike Product & Technology
Sep 20, 2019 · Fundamentals

In‑Depth Analysis of Java ArrayList Implementation

This article provides a comprehensive overview and source‑code dissection of Java's ArrayList, covering its inheritance hierarchy, fields, constructors, addition, removal, modification, traversal, serialization, sorting, array conversion, thread‑safety considerations, and practical usage tips.

ArrayListCollectionsData Structures
0 likes · 16 min read
In‑Depth Analysis of Java ArrayList Implementation
Programmer DD
Programmer DD
May 27, 2019 · Backend Development

Top 10 Java Mistakes Every Developer Should Avoid

This article lists and explains ten of the most common errors Java developers make—from misusing Arrays.asList and raw types to incorrect loop deletions, mutable versus immutable objects, and constructor pitfalls—providing correct code examples and best‑practice recommendations.

ArrayListCollectionsbest-practices
0 likes · 11 min read
Top 10 Java Mistakes Every Developer Should Avoid
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
Java Captain
Java Captain
Mar 1, 2019 · Fundamentals

Introduction and Source Code Analysis of Java ArrayList

This article introduces Java's ArrayList as a dynamic array implementation, explains its non‑thread‑safe nature, details its constructors, capacity‑growth strategy, key methods such as ensureCapacity, add, remove, toArray, and examines the underlying source code including array copying utilities.

ArrayListCollectionsDataStructure
0 likes · 13 min read
Introduction and Source Code Analysis of Java ArrayList
Big Data Technology & Architecture
Big Data Technology & Architecture
Feb 14, 2019 · Backend Development

Deep Dive into Java ArrayList: Implementation, Core Methods, and Usage Patterns

This article provides a comprehensive overview of Java's ArrayList, covering its internal structure, key fields, constructors, core operations such as adding, removing, and searching elements, traversal techniques, fail‑fast behavior, and a comparison with Vector, all illustrated with original source code snippets.

ArrayListCollectionsData Structures
0 likes · 18 min read
Deep Dive into Java ArrayList: Implementation, Core Methods, and Usage Patterns
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.

ArrayListLinkedListMemory Management
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.

ArrayListHashMapLinkedList
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
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 Captain
Java Captain
Apr 13, 2018 · Fundamentals

Java ArrayList Overview and Source Code Walkthrough

This article provides an overview of Java's ArrayList class, explaining its dynamic array implementation, thread-safety considerations, key interfaces, constructors, capacity management, core methods, and internal mechanisms such as ensureCapacity, trimToSize, and serialization, accompanied by detailed source code excerpts and practical insights.

ArrayListCollectionsData Structures
0 likes · 13 min read
Java ArrayList Overview and Source Code Walkthrough
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
Sep 25, 2017 · Fundamentals

Java Collection Framework Overview with Code Examples

This article explains the Java collection class diagram, distinguishes concrete classes, abstract classes, and interfaces, describes Iterator and ListIterator behavior, and provides detailed code demonstrations of HashSet, ArrayList, ListIterator, and WeakHashMap usage along with their outputs.

ArrayListData StructuresIterator
0 likes · 13 min read
Java Collection Framework Overview with Code Examples
Java Backend Technology
Java Backend Technology
Sep 4, 2017 · Fundamentals

Deep Dive into Java ArrayList: How It Works Under the Hood

This article explores Java's ArrayList implementation in depth, covering its core interfaces, member variables, constructors, and the most commonly used methods, while illustrating how the internal array expands and how each operation manipulates the underlying data structure.

ArrayListData Structuresjava
0 likes · 14 min read
Deep Dive into Java ArrayList: How It Works Under the Hood
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