Tagged articles
243 articles
Page 2 of 3
Java Architect Essentials
Java Architect Essentials
Jan 12, 2022 · Backend Development

Master Java Stream API: 20 Real‑World Examples and Best Practices

This tutorial walks through Java 8 Stream fundamentals, covering creation, intermediate operations (filter, map, flatMap, reduce), terminal actions, collectors, grouping, sorting, and parallel streams, illustrated with 20 practical code examples that transform and analyze collections of objects such as employee records.

CollectionsJavaStream API
0 likes · 24 min read
Master Java Stream API: 20 Real‑World Examples and Best Practices
Top Architect
Top Architect
Jan 6, 2022 · Backend Development

Simplifying Java Code with Stream API: From Filtering to Grouping

This article explains how Java 8's Lambda expressions and Stream API enable concise, declarative processing of collections—showing pre‑Java 8 versus Java 8 implementations for filtering, sorting, mapping, and grouping dishes, and covering core stream concepts, creation methods, intermediate and terminal operations.

CollectionsJavaLambda
0 likes · 16 min read
Simplifying Java Code with Stream API: From Filtering to Grouping
Kuaishou Tech
Kuaishou Tech
Dec 22, 2021 · Mobile Development

Swift Performance Optimization: Compilation Speed, Memory Usage, and Runtime Improvements

This article examines various Swift performance optimization techniques—including compilation speed improvements, memory allocation strategies, struct versus class trade‑offs, enum usage, collection handling, lazy sequences, bridge reduction, and function dispatch—providing practical code examples and analysis to help developers write faster, more efficient Swift code.

CollectionsCompilationEnums
0 likes · 16 min read
Swift Performance Optimization: Compilation Speed, Memory Usage, and Runtime Improvements
Java Tech Enthusiast
Java Tech Enthusiast
Dec 14, 2021 · Fundamentals

Analysis of Java HashMap put Method and Internal Mechanics

The article dissects Java’s HashMap put method, explaining how it computes a mixed hash, locates an index in a power‑of‑two table, inserts or replaces nodes in a linked‑list chain that may be converted to a red‑black tree, and triggers resizing when the load‑factor threshold is exceeded.

AlgorithmsCollectionsData Structures
0 likes · 13 min read
Analysis of Java HashMap put Method and Internal Mechanics
Java Backend Technology
Java Backend Technology
Dec 11, 2021 · Backend Development

Master Java 8 Streams: 20 Real‑World Examples to Boost Your Coding Efficiency

This tutorial introduces Java 8 Stream API, explains its core concepts, shows how to create streams from collections and arrays, and demonstrates 20 practical examples covering filtering, mapping, reducing, collecting, grouping, sorting and parallel processing to dramatically improve development productivity.

CollectionsFunctionalProgrammingJava
0 likes · 22 min read
Master Java 8 Streams: 20 Real‑World Examples to Boost Your Coding Efficiency
Code Ape Tech Column
Code Ape Tech Column
Nov 10, 2021 · Backend Development

Simplifying Collection Processing with Java 8 Stream API

This article demonstrates how Java 8's Stream API and lambda expressions can replace verbose pre‑Java 8 collection handling code with concise, readable functional pipelines for filtering, sorting, mapping, grouping, and aggregating data.

CollectionsJavaLambda
0 likes · 15 min read
Simplifying Collection Processing with Java 8 Stream API
Programmer DD
Programmer DD
Oct 30, 2021 · Backend Development

Unlock Postman's Hidden Power: Automate API Tests Like a Pro

Learn how to transform Postman's often‑overlooked features into a powerful automated API testing workflow, covering result validation, batch collections, data‑driven testing, scheduled monitors, variable handling, request dependencies, and custom scripting to boost efficiency and reliability for developers.

AutomationCollectionsMonitors
0 likes · 15 min read
Unlock Postman's Hidden Power: Automate API Tests Like a Pro
Wukong Talks Architecture
Wukong Talks Architecture
Oct 28, 2021 · Backend Development

Common Java Interview Questions and Answers

This article compiles a comprehensive list of frequently asked Java interview questions, covering topics such as the relationship between JDK/JRE/JVM, object creation methods, differences between == and equals, hashCode, String variants, synchronization mechanisms, lock implementations, collections, concurrency utilities, thread pools, and I/O models, providing concise explanations for each.

CollectionsJDKJVM
0 likes · 14 min read
Common Java Interview Questions and Answers
Code Ape Tech Column
Code Ape Tech Column
Oct 26, 2021 · Fundamentals

Understanding Java Generics: Theory, Wildcards, and Practical Examples

This article provides a comprehensive guide to Java generics, covering compilation vs runtime, generic classes, interfaces, methods, wildcard types, bounded and unbounded usage, and practical code examples demonstrating how to design flexible, type‑safe collection utilities and apply generic constraints effectively.

CollectionsGenericsJava
0 likes · 20 min read
Understanding Java Generics: Theory, Wildcards, and Practical Examples
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 12, 2021 · Fundamentals

10 Common Java Bugs and How to Avoid Them

This article lists ten typical Java programming mistakes—including array‑to‑ArrayList conversion errors, inefficient value checks, improper element removal in lists, misuse of Hashtable/HashMap, raw generic types, access‑level issues, and mutable versus immutable objects—explaining why they occur and providing correct code examples to prevent them.

CollectionsGenericsJava
0 likes · 12 min read
10 Common Java Bugs and How to Avoid Them
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 9, 2021 · Backend Development

Common Java Interview Questions and Answers

This article compiles a comprehensive list of frequently asked Java interview questions, covering topics such as JDK/JRE/JVM relationships, object creation methods, equality comparison, concurrency mechanisms, collections, thread pools, and I/O models, providing concise answers for quick reference.

CollectionsJVMJava
0 likes · 14 min read
Common Java Interview Questions and Answers
Java Backend Technology
Java Backend Technology
Oct 9, 2021 · Fundamentals

Avoid Common Pitfalls When Removing Elements from Java Lists

This article explains why naïve removal of elements from a Java List can produce unexpected results or throw ConcurrentModificationException, and demonstrates seven safe techniques—including index adjustment, reverse iteration, and iterator‑based removal—along with code samples and detailed reasoning.

CollectionsIteratorJava
0 likes · 8 min read
Avoid Common Pitfalls When Removing Elements from Java Lists
Programmer DD
Programmer DD
Oct 7, 2021 · Fundamentals

Unlock Java 11: Powerful New String APIs, Collections, and More

This article walks through Java 11’s most useful enhancements—including new String methods, simplified collection‑to‑array conversion, predicate negation, var in lambda parameters, streamlined file I/O, nested class access rules, and HTTP/2 support—providing concise code examples for each feature.

CollectionsHttpClientJava 11
0 likes · 8 min read
Unlock Java 11: Powerful New String APIs, Collections, and More
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
macrozheng
macrozheng
Sep 2, 2021 · Backend Development

Mastering Java 8 Stream API: 20 Real‑World Examples

This tutorial walks through Java 8 Stream and Lambda features, explaining stream concepts, intermediate and terminal operations, and demonstrating twenty practical examples—including creation, filtering, mapping, reduction, collection, sorting, and combining—using an employee class to illustrate each operation.

CollectionsJavaJava 8
0 likes · 27 min read
Mastering Java 8 Stream API: 20 Real‑World Examples
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 1, 2021 · Fundamentals

Comprehensive Java Fundamentals Guide: JVM, JDK, OOP, Exceptions, Collections, and More

This article provides an extensive overview of Java fundamentals, covering the JVM/JRE/JDK relationship, bytecode and JIT compilation, core language features introduced in Java 8, basic syntax differences, data types, OOP principles, SOLID design, exception handling, reference types, and string manipulation classes.

CollectionsExceptionsJVM
0 likes · 34 min read
Comprehensive Java Fundamentals Guide: JVM, JDK, OOP, Exceptions, Collections, and More
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
Code Ape Tech Column
Code Ape Tech Column
Aug 22, 2021 · Backend Development

Comprehensive Java 8 Stream API Guide with 20 Practical Examples

This article provides a thorough introduction to Java 8's Stream and Lambda features, presenting twenty detailed code examples that cover stream creation, intermediate operations such as filter, map, flatMap, reduce, collect, and terminal operations including sorting, grouping, and parallel processing, helping developers master functional-style collection handling in Java.

Code ExamplesCollectionsJava
0 likes · 24 min read
Comprehensive Java 8 Stream API Guide with 20 Practical Examples
Top Architect
Top Architect
Aug 21, 2021 · Fundamentals

Comprehensive Guide to Java Collections Framework: Lists, Sets, Queues, Maps and Their Implementations

This article provides an in-depth overview of Java's Collections Framework, detailing the structure, usage, and source code of core interfaces like List, Set, Queue, and Map, and their key implementations such as ArrayList, LinkedList, HashSet, TreeSet, PriorityQueue, ArrayDeque, HashMap, and Hashtable, while highlighting performance characteristics and thread-safety considerations.

Backend DevelopmentCollectionsData Structures
0 likes · 39 min read
Comprehensive Guide to Java Collections Framework: Lists, Sets, Queues, Maps and Their Implementations
Python Programming Learning Circle
Python Programming Learning Circle
Aug 17, 2021 · Fundamentals

Python Tips: Variable Swapping, Comprehensions, Counter, JSON Pretty‑Print, FizzBuzz, and More

This article presents a collection of practical Python techniques, including variable swapping without a temporary variable, using dictionary and set comprehensions, leveraging the Counter class for counting, pretty‑printing JSON, solving FizzBuzz concisely, inline conditional expressions, list slicing, dictionary get method, and generating combinations with itertools.

CollectionsComprehensionsJSON
0 likes · 8 min read
Python Tips: Variable Swapping, Comprehensions, Counter, JSON Pretty‑Print, FizzBuzz, and More
Programmer DD
Programmer DD
Aug 14, 2021 · Fundamentals

Why Overriding hashCode() Matters: Java HashSet Gotchas Explained

This article explains the purpose of Java's hashCode() and equals() methods, outlines the rules for overriding them, demonstrates common pitfalls with HashSet through a concrete code example, and clarifies why both methods must be overridden when using custom objects as HashMap keys.

CollectionsHashMapJava
0 likes · 6 min read
Why Overriding hashCode() Matters: Java HashSet Gotchas Explained
Top Architect
Top Architect
Aug 1, 2021 · Backend Development

Comprehensive Guide to Java 8 Stream API with Practical Examples

This article provides an in‑depth tutorial on Java 8 Stream API, covering its concepts, creation methods, common operations such as filtering, mapping, reducing, collecting, sorting, and grouping, along with numerous runnable code examples that demonstrate how to process collections efficiently using streams.

CollectionsJavaJava 8
0 likes · 24 min read
Comprehensive Guide to Java 8 Stream API with Practical Examples
Java Captain
Java Captain
Aug 1, 2021 · Backend Development

How to Write More Standardized Java Code

This article presents a comprehensive set of Java coding best‑practice guidelines—ranging from MyBatis query writing, efficient Map iteration, collection handling, StringBuilder usage, to proper enum design and exception handling—each illustrated with clear anti‑pattern and correct‑pattern code examples.

CollectionsExceptionsJava
0 likes · 14 min read
How to Write More Standardized Java Code
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 18, 2021 · Fundamentals

Understanding CopyOnWriteArrayList, Vector, and SynchronizedList in Java Concurrency

This article explains the copy‑on‑write optimization, compares Vector, Collections.synchronizedList and CopyOnWriteArrayList, analyzes their fail‑fast behavior, shows how CopyOnWriteArrayList is implemented and iterated, and presents performance benchmarks highlighting their strengths and weaknesses.

CollectionsCopyOnWriteArrayListJava
0 likes · 14 min read
Understanding CopyOnWriteArrayList, Vector, and SynchronizedList in Java Concurrency
Top Architect
Top Architect
Jun 7, 2021 · Backend Development

Comprehensive Guide to Java Stream API with Practical Examples

This article provides an in‑depth tutorial on Java 8 Stream API, covering creation, intermediate and terminal operations, filtering, mapping, reducing, collecting, grouping, sorting, and practical code examples for processing collections such as employee data.

CollectionsJavaJava 8
0 likes · 21 min read
Comprehensive Guide to Java Stream API with Practical Examples
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
ZhiKe AI
ZhiKe AI
May 8, 2021 · Fundamentals

A Reusable Java Utility for Building Tree Structures

This article shares a generic Java utility class that recursively constructs hierarchical tree structures from a flat list by using functional interfaces to identify parent‑child relationships, optionally sorting nodes, and providing a flexible way to set child collections.

CollectionsGenericsJava
0 likes · 4 min read
A Reusable Java Utility for Building Tree Structures
Architect's Tech Stack
Architect's Tech Stack
Apr 24, 2021 · Backend Development

Using Java 8 Map.merge() to Aggregate Student Scores

This article introduces Java 8's Map.merge() method, demonstrates how to replace verbose map‑update code with a concise merge operation for summing student scores, explains the underlying mechanism, and briefly mentions related map utilities such as compute and putIfAbsent.

CollectionsFunctionalProgrammingJava
0 likes · 6 min read
Using Java 8 Map.merge() to Aggregate Student Scores
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Apr 20, 2021 · Backend Development

Comprehensive Java HashMap Interview Questions and Answers

This article provides a thorough collection of over 30 common Java HashMap interview questions, explaining its underlying data structures, hashing mechanisms, collision resolution, resizing, thread safety, and differences from related maps, along with detailed answers and code examples for each topic.

CollectionsHashMapJava
0 likes · 21 min read
Comprehensive Java HashMap Interview Questions and Answers
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.

ArrayListCollectionsJava
0 likes · 6 min read
Five Methods to Remove Duplicates from a Java ArrayList
Intelligent Backend & Architecture
Intelligent Backend & Architecture
Apr 2, 2021 · Fundamentals

Master Java Collections: From ArrayList to ConcurrentHashMap Explained

This article provides a comprehensive overview of Java's collection framework, detailing the roles of interfaces, implementations, and algorithms, comparing collections with arrays, describing common List, Set, and Map classes, their underlying data structures, thread‑safety characteristics, and best practices for iteration and usage.

CollectionsConcurrentHashMapData Structures
0 likes · 48 min read
Master Java Collections: From ArrayList to ConcurrentHashMap Explained
Programmer DD
Programmer DD
Mar 25, 2021 · Backend Development

Hidden Traps in Java’s JDK: Avoid These Common Pitfalls

This article reveals frequent JDK pitfalls such as missing null checks in String.valueOf, fragile Integer.parseInt conversions, BigDecimal division errors, unmodifiable Collections.emptyList, and unsafe list iteration, providing concrete code examples and safe handling recommendations for Java developers.

BigDecimalCollectionsJDK
0 likes · 10 min read
Hidden Traps in Java’s JDK: Avoid These Common Pitfalls
Top Architect
Top Architect
Mar 15, 2021 · Fundamentals

Analysis of JDK 1.8 HashMap Implementation Compared to JDK 1.7

This article explains the major differences between JDK 1.8 and JDK 1.7 HashMap implementations, detailing the initialization process, the putVal algorithm steps, how collisions are handled with linked lists and red‑black trees, and the changes in resizing behavior.

CollectionsData StructuresHashMap
0 likes · 5 min read
Analysis of JDK 1.8 HashMap Implementation Compared to JDK 1.7
Top Architect
Top Architect
Feb 12, 2021 · Fundamentals

Understanding Java's Comparable Interface and How to Implement It

This article explains the purpose of Java's Comparable interface, demonstrates sorting with built‑in classes like String, shows the failure when custom objects lack the interface, and provides a complete example of implementing Comparable to sort objects by a chosen field.

CollectionsComparableJava
0 likes · 8 min read
Understanding Java's Comparable Interface and How to Implement It
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
Java Backend Technology
Java Backend Technology
Jan 24, 2021 · Fundamentals

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

This article explains common pitfalls when using Java's Arrays.asList and ArrayList.subList methods, illustrating why add operations may trigger UnsupportedOperationException or ConcurrentModificationException, and provides guidance on safe usage to avoid runtime errors in production.

Arrays.asListCollectionsConcurrentModificationException
0 likes · 10 min read
Why Arrays.asList and subList Can Throw Unexpected Exceptions in Java
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 Architect Essentials
Java Architect Essentials
Nov 27, 2020 · Backend Development

16 Java Coding Best Practices for Performance and Clean Code

This article presents sixteen practical Java coding best‑practice guidelines—including avoiding ‘where 1=1’ in MyBatis, using entrySet for map iteration, preferring Collection.isEmpty(), pre‑sizing collections, employing StringBuilder, leveraging Set for contains checks, static initialization blocks, and other tips—to improve performance, readability, and safety of backend applications.

BackendCode OptimizationCollections
0 likes · 18 min read
16 Java Coding Best Practices for Performance and Clean Code
Top Architect
Top Architect
Nov 18, 2020 · Backend Development

A Comprehensive Guide to Google Guava: Collections, Functional Utilities, and Caching in Java

This article introduces the core features of Google Guava—including Joiner, Splitter, CharMatcher, primitive type helpers, Multiset, immutable collections, Multimap, BiMap, Table, functional utilities like Functions and Predicates, Optional, Preconditions, and a powerful local Cache—showcasing how they simplify Java development and improve code readability, safety, and performance.

CacheCollectionsGuava
0 likes · 9 min read
A Comprehensive Guide to Google Guava: Collections, Functional Utilities, and Caching in Java
FunTester
FunTester
Nov 12, 2020 · Fundamentals

How to Compute the Union of Two Arrays in Java Using HashSet

This tutorial demonstrates step‑by‑step how to obtain the union of two arrays in Java—both primitive and object types—by leveraging a HashSet with addAll, includes full code examples, console output, and a concise Groovy alternative.

Array UnionCollectionsGroovy
0 likes · 5 min read
How to Compute the Union of Two Arrays in Java Using HashSet
Selected Java Interview Questions
Selected Java Interview Questions
Nov 2, 2020 · Backend Development

Java Stream API Overview and Practical Usage Examples

This article provides a comprehensive guide to Java 8 Stream API, covering its core characteristics, creation methods, essential interfaces, and common operations such as filtering, mapping, reducing, collecting, grouping, and sorting, with clear code examples for each concept.

APICollectionsFunctionalProgramming
0 likes · 23 min read
Java Stream API Overview and Practical Usage Examples
php Courses
php Courses
Oct 30, 2020 · Backend Development

Common Laravel Collection Methods and Their Usage

This tutorial explains Laravel's powerful Collection class, demonstrating how to create collections with the collect helper and use methods such as filter, search, chunk, map, zip, whereNotIn, max, pluck, each, tap, pipe, contains, forget, and avg to manipulate data without additional database queries.

BackendCollectionsEloquent
0 likes · 10 min read
Common Laravel Collection Methods and Their Usage
IT Xianyu
IT Xianyu
Oct 12, 2020 · Fundamentals

Understanding equals() and hashCode() in Java: When They Matter

This article explains the roles of equals() and hashCode() in Java, demonstrates how their interaction affects hash‑based collections like HashSet, provides multiple code examples showing correct and incorrect implementations, and outlines essential principles for overriding these methods to ensure proper object equality handling.

CollectionsJavaObject Equality
0 likes · 9 min read
Understanding equals() and hashCode() in Java: When They Matter
IT Xianyu
IT Xianyu
Oct 10, 2020 · Fundamentals

How to Choose Between HashMap and TreeMap in Java

HashMap and TreeMap serve different purposes in Java: HashMap offers fast, unordered access using hash codes, while TreeMap maintains keys in sorted order via a red‑black tree, and the article explains their implementations, performance trade‑offs, and how to customize TreeMap ordering with comparators.

CollectionsComparatorData Structures
0 likes · 5 min read
How to Choose Between HashMap and TreeMap in Java
Programmer DD
Programmer DD
Aug 19, 2020 · Fundamentals

Why Does Java’s Comparable Interface Matter? A Deep Dive with Code Examples

This article explains the purpose of Java's Comparable interface, demonstrates how built‑in classes like String use it for natural ordering, shows the failure when custom objects lack it, and provides a step‑by‑step guide to implementing Comparable with practical code samples.

CollectionsComparableInterface
0 likes · 9 min read
Why Does Java’s Comparable Interface Matter? A Deep Dive with Code Examples
Architect's Tech Stack
Architect's Tech Stack
Aug 8, 2020 · Backend Development

Simplifying Collection Processing with Java 8 Streams and Lambdas

This article explains how Java 8's Stream API and lambda expressions can replace verbose loops with concise, declarative operations for filtering, sorting, mapping, and grouping collections, while also covering stream creation, intermediate and terminal operations, and advanced collectors for data analysis.

CollectionsLambdaStreams
0 likes · 13 min read
Simplifying Collection Processing with Java 8 Streams and Lambdas
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
Aug 2, 2020 · Fundamentals

Understanding Java HashSet: Overview, Constructors, add/remove Methods, Traversal, and Related Set Implementations

This article explains the internal workings of Java's HashSet, covering its overview, various constructors, the add and remove operations implemented via HashMap, traversal techniques, and how LinkedHashSet and TreeSet extend HashSet functionality, providing code examples and conceptual diagrams.

Backend DevelopmentCollectionsJava
0 likes · 10 min read
Understanding Java HashSet: Overview, Constructors, add/remove Methods, Traversal, and Related Set Implementations
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
Programmer DD
Programmer DD
Jul 23, 2020 · Fundamentals

When to Use HashMap vs TreeMap in Java? A Practical Guide

This article explains the differences between Java's HashMap and TreeMap, covering their underlying implementations, performance characteristics, thread safety, and how to customize TreeMap for descending order, helping developers choose the right map for their needs.

CollectionsData StructuresHashMap
0 likes · 7 min read
When to Use HashMap vs TreeMap in Java? A Practical Guide
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
macrozheng
macrozheng
Jul 17, 2020 · Fundamentals

Master Java Collections: From Lists to Queues and Sets Explained

This article provides a comprehensive overview of Java's collection framework, detailing the core interfaces Collection and Map, their CRUD operations, and the characteristics, APIs, and performance trade‑offs of List, Set, Queue, Deque, Vector, and related implementations.

CollectionsJavaList
0 likes · 14 min read
Master Java Collections: From Lists to Queues and Sets Explained
Selected Java Interview Questions
Selected Java Interview Questions
Jul 14, 2020 · Backend Development

Deep Dive into Java HashMap: Implementation Details, Internals, and Interview Questions

This article explains the internal design of Java's HashMap—including its default capacity, load factor, underlying array‑list‑tree structure, hash calculation, resizing algorithm, treeification, and common interview questions—while providing complete source code snippets and practical usage tips for developers.

CollectionsData StructuresHashMap
0 likes · 22 min read
Deep Dive into Java HashMap: Implementation Details, Internals, and Interview Questions
Architect's Tech Stack
Architect's Tech Stack
Jun 5, 2020 · Fundamentals

Introduction to Java Lambda Expressions and Common Usage Examples

This article introduces Java Lambda expressions, explains the functional interface requirements, demonstrates basic and simplified syntax, and provides numerous practical examples such as method references, constructor references, thread creation, collection iteration, element removal, sorting, and closure behavior.

CollectionsFunctionalInterfaceLambda
0 likes · 13 min read
Introduction to Java Lambda Expressions and Common Usage Examples
Programmer DD
Programmer DD
May 20, 2020 · Backend Development

Top 10 Classic Java Interview Questions Every Developer Should Master

This article presents ten essential Java interview questions covering HashMap internals, fail‑fast vs. fail‑safe iterators, BlockingQueue, ConcurrentHashMap usage, List implementation performance, Iterator vs. ListIterator differences, CopyOnWriteArrayList, Iterator vs. Enumeration, HashMap synchronization, and the distinction between IdentityHashMap and HashMap.

CollectionsHashMapJava
0 likes · 8 min read
Top 10 Classic Java Interview Questions Every Developer Should Master
Laravel Tech Community
Laravel Tech Community
May 18, 2020 · Backend Development

Laravel Collection Helper Cheat Sheet

This article provides a comprehensive cheat sheet of Laravel's Collection helper methods, illustrating how to create, manipulate, and query collections with numerous code examples covering operations such as chunking, merging, filtering, sorting, and converting collections to arrays or JSON.

BackendCollectionsHelper
0 likes · 7 min read
Laravel Collection Helper Cheat Sheet
Programmer DD
Programmer DD
May 14, 2020 · Backend Development

How Does Java’s HashSet Ensure No Duplicate Elements?

This article explains how Java's HashSet implementation guarantees element uniqueness by internally using a HashMap, detailing its constructors, internal fields, the add method, and the underlying HashMap put and putVal logic that handles collisions and duplicate detection.

CollectionsDuplicateHashMap
0 likes · 6 min read
How Does Java’s HashSet Ensure No Duplicate Elements?
Architect's Tech Stack
Architect's Tech Stack
May 2, 2020 · Fundamentals

Comprehensive Overview of the Java Collection Framework: Interfaces, Implementations, and Usage

This article provides a detailed walkthrough of Java's collection framework, covering the hierarchy of interfaces and abstract classes, the characteristics of List, Set, and Map implementations, iterator mechanisms, common pitfalls, and practical code examples to help developers choose and use the appropriate collection types effectively.

CollectionsData StructuresIterators
0 likes · 31 min read
Comprehensive Overview of the Java Collection Framework: Interfaces, Implementations, and Usage
Selected Java Interview Questions
Selected Java Interview Questions
Apr 30, 2020 · Fundamentals

Java Collections Framework Interview Questions and Answers

This article compiles a comprehensive set of Java Collections Framework interview questions, explaining its purpose, advantages, generic benefits, core interfaces, iterator behavior, fail‑fast vs fail‑safe, map views, differences among implementations, thread‑safety, and sorting mechanisms.

CollectionsData StructuresGenerics
0 likes · 18 min read
Java Collections Framework Interview Questions and Answers
Java Captain
Java Captain
Apr 29, 2020 · Fundamentals

Comprehensive Overview of the Java Collection Framework: Interfaces, Implementations, and Usage

This article provides a detailed introduction to Java's collection framework, covering the core interfaces (Collection and Map), concrete implementations such as List, Set, and Map, iterator mechanisms, differences among classes like ArrayList, LinkedList, HashSet, TreeSet, and practical code examples illustrating their behavior.

CollectionsFrameworkIterator
0 likes · 33 min read
Comprehensive Overview of the Java Collection Framework: Interfaces, Implementations, and Usage
21CTO
21CTO
Apr 23, 2020 · Backend Development

Avoid These Hidden Java Pitfalls: Object Comparison, Generics, and CGLIB Proxy Gotchas

This article reveals common Java pitfalls—from using Objects.equals versus ==, ternary operator type conversion, generic type mismatches, Set deduplication, BeanUtils property copying, to CGLIB proxy quirks—and provides concrete analysis and practical avoidance techniques for each case.

CollectionsGenericsJava
0 likes · 28 min read
Avoid These Hidden Java Pitfalls: Object Comparison, Generics, and CGLIB Proxy Gotchas
Laravel Tech Community
Laravel Tech Community
Apr 16, 2020 · Backend Development

Understanding Laravel Eloquent Collections and Their Methods

This article explains how Laravel Eloquent returns Collection objects, demonstrates iterating and chaining collection methods such as reject and map, lists the extensive base collection API, and shows how to create custom collections by overriding the newCollection method in a model.

Backend DevelopmentCollectionsEloquent
0 likes · 5 min read
Understanding Laravel Eloquent Collections and Their Methods
Python Programming Learning Circle
Python Programming Learning Circle
Apr 7, 2020 · Fundamentals

Python Set Tutorial – Creation, Operations, and Usage

This article introduces Python's set data type, explains how to create empty and non‑empty sets, demonstrates common operations such as add, update, remove, discard, pop, clear, iteration, set algebra operators, and describes the immutable frozenset, all illustrated with code examples.

CollectionsSetSet Operations
0 likes · 9 min read
Python Set Tutorial – Creation, Operations, and Usage
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
Programmer DD
Programmer DD
Mar 14, 2020 · Fundamentals

Top 7 Must‑Know Java Questions from StackOverflow and Their Answers

An English‑language roundup of the most popular Java questions on StackOverflow—covering branch prediction, password handling with char arrays, common exceptions, deterministic random strings, historic timezone quirks, the uncatchable ChuckNorrisException, and collection‑type choices—provides concise explanations and code snippets for each topic.

CollectionsExceptionsJava
0 likes · 9 min read
Top 7 Must‑Know Java Questions from StackOverflow and Their Answers
FunTester
FunTester
Feb 26, 2020 · Fundamentals

Why Thread‑Safe Collections Still Fail with Non‑Thread‑Safe Objects in Java

Through a series of Java demos, this article examines how storing non‑thread‑safe objects inside thread‑safe collections like ConcurrentHashMap or CopyOnWriteArrayList can still cause concurrency bugs, explains the underlying remove() implementation, and shows how switching to a thread‑safe Vector resolves the issue.

CollectionsConcurrentHashMapCopyOnWriteArrayList
0 likes · 8 min read
Why Thread‑Safe Collections Still Fail with Non‑Thread‑Safe Objects in Java
FunTester
FunTester
Feb 17, 2020 · Fundamentals

Mastering Thread‑Safe Objects in Java: From Synchronized Collections to Atomic Variables

This article explains how Java threads share objects, why immutable objects are safest, how to make mutable collections thread‑safe using synchronized wrappers or concurrent classes, handles non‑thread‑safe types like SimpleDateFormat, and demonstrates race‑condition fixes with synchronized blocks and AtomicInteger.

AtomicIntegerCollectionsJava
0 likes · 10 min read
Mastering Thread‑Safe Objects in Java: From Synchronized Collections to Atomic Variables
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
Java Backend Technology
Java Backend Technology
Oct 26, 2019 · Backend Development

15 Essential Java Backend Coding Practices to Boost Performance

This article presents fifteen practical Java backend coding guidelines—including avoiding "where 1=1" in MyBatis, iterating Map entrySet, using Collection.isEmpty, pre‑sizing collections, employing StringBuilder, preferring Set for contains checks, initializing static members correctly, removing dead code, shielding utility constructors, eliminating redundant catches, using String.valueOf, avoiding BigDecimal(double), returning empty collections, calling equals on constants, securing enum fields, and escaping regex in split—each illustrated with bad and good code examples to improve readability, safety, and efficiency.

BackendCollectionsJava
0 likes · 16 min read
15 Essential Java Backend Coding Practices to Boost Performance
Programmer DD
Programmer DD
Oct 26, 2019 · Backend Development

Java Stream vs For Loop: Which Is Faster? A Performance Benchmark

This article benchmarks Java 8 Stream against traditional for‑loops across primitive, object, and complex‑object scenarios, revealing that while for‑loops excel on simple primitive tasks, parallel Stream often outperforms both sequential Stream and loops, especially on multi‑core systems.

BenchmarkCollectionsJava
0 likes · 8 min read
Java Stream vs For Loop: Which Is Faster? A Performance Benchmark
Amap Tech
Amap Tech
Oct 23, 2019 · Fundamentals

Java Programming Techniques: Collections, ThreadLocal, Pair, Enum, Union, and Generics

The article presents a toolbox of practical Java techniques—including using HashSet for fast duplicate detection, HashMap for building hierarchical structures, ThreadLocal for thread‑specific data, Pair and custom holder classes for multiple return values, enum definitions, union‑style classes, and generic and wildcard patterns—to streamline everyday coding tasks.

CollectionsEnumsJava
0 likes · 22 min read
Java Programming Techniques: Collections, ThreadLocal, Pair, Enum, Union, and Generics
Java Captain
Java Captain
Oct 22, 2019 · Backend Development

Common Java Coding Pitfalls and Best‑Practice Recommendations

This article enumerates typical Java coding mistakes—such as using "where 1=1" in MyBatis, iterating Map inefficiently, neglecting Collection.isEmpty, omitting collection size hints, concatenating strings in loops, overusing List.contains, misusing static initializers, keeping redundant code, and more—while providing concise, performance‑oriented corrections with clear examples.

Code OptimizationCollectionsException Handling
0 likes · 13 min read
Common Java Coding Pitfalls and Best‑Practice Recommendations
21CTO
21CTO
Oct 21, 2019 · Backend Development

Boost Java Performance: 16 Proven Coding Practices You Should Adopt

This article presents sixteen practical Java coding guidelines—ranging from avoiding "where 1=1" in MyBatis to using static blocks for collection initialization, preferring Set over List for contains checks, and returning empty collections instead of null—to help developers write more efficient, readable, and safe backend code.

Backend DevelopmentCode OptimizationCollections
0 likes · 17 min read
Boost Java Performance: 16 Proven Coding Practices You Should Adopt
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 20, 2019 · Fundamentals

Understanding the Differences Between TreeSet, HashSet, HashMap, TreeMap, and Red-Black Trees in Java

An interview-style dialogue explains the distinctions between TreeSet and HashSet, the underlying implementations of HashMap versus TreeMap, and how red‑black trees provide balanced performance, covering hash collisions, treeification, and thread‑safety considerations in Java collections.

CollectionsData StructuresHashMap
0 likes · 6 min read
Understanding the Differences Between TreeSet, HashSet, HashMap, TreeMap, and Red-Black Trees in Java
Selected Java Interview Questions
Selected Java Interview Questions
Oct 10, 2019 · Fundamentals

Choosing Between HashMap and TreeMap in Java

This article explains the differences between Java's HashMap and TreeMap, covering their underlying implementations, performance characteristics, ordering behavior, and how to use a custom comparator to achieve descending order, helping developers choose the appropriate map based on ordering and efficiency needs.

CollectionsComparatorData Structures
0 likes · 8 min read
Choosing Between HashMap and TreeMap in Java
Jike Tech Team
Jike Tech Team
Sep 25, 2019 · Mobile Development

Why Kotlin Differs from Java: Constructors, init Blocks, and Static Alternatives

This article explores the key differences between Kotlin and Java for Android development, covering constructors, init blocks, val versus final, static equivalents with companion objects, top‑level declarations, arrays, collections, sequences, visibility modifiers, and includes practical exercises.

AndroidCollectionsCompanion Object
0 likes · 23 min read
Why Kotlin Differs from Java: Constructors, init Blocks, and Static Alternatives
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