Tagged articles
243 articles
Page 1 of 3
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 16, 2026 · Backend Development

14 Advanced Java Collection Tricks to Write Cleaner Code

This article presents fourteen practical Java collection techniques—ranging from creating immutable and empty collections to using computeIfAbsent, Map.merge, Collectors.groupingBy, and EnumMap/EnumSet—each illustrated with concise code snippets and explanations that improve readability, safety, and performance in Spring Boot applications.

CollectionsEnumMapJava
0 likes · 9 min read
14 Advanced Java Collection Tricks to Write Cleaner Code
Coder Trainee
Coder Trainee
Mar 3, 2026 · Fundamentals

Common Pitfalls When Using Java List Collections

The article explains three typical traps when working with Java List: Arrays.asList returns a fixed‑size list that throws UnsupportedOperationException on add/remove, iterating and removing elements directly also fails, and converting primitive arrays with Arrays.asList produces an unexpected single‑element list.

Arrays.asListCollectionsJava
0 likes · 4 min read
Common Pitfalls When Using Java List Collections
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 1, 2026 · Backend Development

8 Common Java Collection Mistakes That Kill Performance (and How to Fix Them)

This article reveals eight frequent Java collection pitfalls—such as costly ArrayList insertions, inefficient LinkedList access, repeated contains checks, missing initial capacities, unordered HashMaps, modifying collections during streams, misuse of parallelStream, and in‑memory caches—explaining why they degrade performance and providing concrete, code‑driven alternatives.

Backend DevelopmentCollectionsJava
0 likes · 10 min read
8 Common Java Collection Mistakes That Kill Performance (and How to Fix Them)
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 23, 2026 · Backend Development

8 Essential Null‑Handling Rules for Spring Boot 3 to Prevent NPEs

This article presents eight concrete rules for handling null values in Spring Boot 3 applications, illustrating common pitfalls with code snippets, explaining production‑impact risks, and offering best‑practice solutions such as using empty collections, explicit null checks, proper Optional usage, and consistent API design.

CollectionsJavaNPE prevention
0 likes · 11 min read
8 Essential Null‑Handling Rules for Spring Boot 3 to Prevent NPEs
java1234
java1234
Feb 18, 2026 · Fundamentals

A Complete Illustrated Guide to Java Generics: Benefits, Usage, and Common Pitfalls

This article explains why raw collections are unsafe, how Java generics enforce compile‑time type safety, reduce casting, improve code readability, and boost performance, and it walks through generic interfaces, collections, custom generic classes, inheritance rules, diamond syntax, and common restrictions with concrete code examples and diagrams.

CollectionsGenericsJava
0 likes · 10 min read
A Complete Illustrated Guide to Java Generics: Benefits, Usage, and Common Pitfalls
SpringMeng
SpringMeng
Feb 16, 2026 · Fundamentals

A Complete Illustrated Guide to Java Generics

This article explains why Java generics were introduced, demonstrates how they improve type safety and reduce casting through concrete examples with generic classes, interfaces, collections, custom generic methods, and highlights common pitfalls such as generic arrays and static methods.

CollectionsCustom Generic MethodsGenerics
0 likes · 9 min read
A Complete Illustrated Guide to Java Generics
Sohu Smart Platform Tech Team
Sohu Smart Platform Tech Team
Feb 11, 2026 · Backend Development

Why TreeSet Throws ConcurrentModificationException and How to Fix It

An in‑depth look at why Java’s TreeSet can trigger ConcurrentModificationException under high concurrency, exploring the red‑black tree’s non‑atomic operations, thread scheduling nuances, and how various concurrent set implementations—synchronized wrappers, read‑write locks, ConcurrentSkipListSet, CopyOnWriteArraySet, and custom designs—compare in performance and suitability.

CollectionsConcurrentModificationExceptionJava
0 likes · 16 min read
Why TreeSet Throws ConcurrentModificationException and How to Fix It
macrozheng
macrozheng
Feb 2, 2026 · Fundamentals

Master Java Generics: Boost Type Safety and Reduce Casting

This article explains the motivation behind Java generics, their benefits such as compile‑time type checking and reduced casting, and provides concrete examples including generic classes, interfaces, collections, inheritance, custom generic methods, and common pitfalls, illustrated with code snippets and diagrams.

CollectionsGenericsJava
0 likes · 9 min read
Master Java Generics: Boost Type Safety and Reduce Casting
IT Services Circle
IT Services Circle
Nov 13, 2025 · Fundamentals

Unlock Java Mastery: From Compilation to Collections, Concurrency and Career Insights

This article combines practical salary insights for Java developers at Transsion with a deep dive into Java fundamentals—including the compilation pipeline, JVM benefits, differences from C++, exception handling, core collection frameworks, concurrency concepts, interview preparation tips, and essential AI knowledge for developers.

AICollectionsJVM
0 likes · 14 min read
Unlock Java Mastery: From Compilation to Collections, Concurrency and Career Insights
JavaGuide
JavaGuide
Nov 6, 2025 · Fundamentals

Why Transsion’s Java Jobs Offer 30‑40k Salaries and How to Ace Their Easy Interview

Transsion’s Java positions in Shanghai and Shenzhen pay 300k‑400k RMB, the interview is surprisingly simple, and the article walks through Java’s compilation pipeline, JVM benefits, Java‑C++ differences, exception handling, collections, concurrency, multithreading, project‑prep tips, and essential AI concepts for interviewers.

CollectionsJVMJava
0 likes · 14 min read
Why Transsion’s Java Jobs Offer 30‑40k Salaries and How to Ace Their Easy Interview
Su San Talks Tech
Su San Talks Tech
Oct 23, 2025 · Fundamentals

Master Java Generics: Decoding T, E, K, V, and ? Symbols

This article explains the purpose and usage of Java generic symbols T, E, K, V, and ?, covering their history, type‑safety benefits, practical code examples, advanced constraints, and best‑practice guidelines for writing clear and flexible generic code.

CollectionsGenericsJava
0 likes · 20 min read
Master Java Generics: Decoding T, E, K, V, and ? Symbols
JakartaEE China Community
JakartaEE China Community
Oct 20, 2025 · Fundamentals

How to Prevent ConcurrentModificationException in Java Collections

The article explains why ConcurrentModificationException occurs when a Java collection is structurally modified during iteration, illustrates typical scenarios such as enhanced‑for loops and multithreaded access, and provides practical solutions including iterator.remove(), thread‑safe collections, synchronized blocks and iterating over copies.

CollectionsConcurrentHashMapConcurrentModificationException
0 likes · 7 min read
How to Prevent ConcurrentModificationException in Java Collections
Architect's Tech Stack
Architect's Tech Stack
Sep 18, 2025 · Backend Development

Master Java Spring Utilities: Assertions, Collections, IO & Reflection

This article compiles essential Spring and Java utility methods—including assertion checks, object and collection handling, file I/O, resource management, and reflection/AOP tools—providing concise code examples and usage guidelines to help developers avoid redundant code and write cleaner, more reliable applications.

CollectionsJavaReflection
0 likes · 13 min read
Master Java Spring Utilities: Assertions, Collections, IO & Reflection
Java Backend Technology
Java Backend Technology
Aug 13, 2025 · Backend Development

Why Stream.toList() Throws UnsupportedOperationException vs collect(Collectors.toList())

This article explains the key differences between Java's Stream toList() method introduced in JDK 16, which returns an unmodifiable list, and the traditional collect(Collectors.toList()) which yields a mutable ArrayList, illustrating behavior with code examples, performance considerations, and practical usage tips.

CollectionsCollectorsImmutable List
0 likes · 8 min read
Why Stream.toList() Throws UnsupportedOperationException vs collect(Collectors.toList())
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
AndroidPub
AndroidPub
Jun 13, 2025 · Fundamentals

Simplify Kotlin Collections Creation with buildList, buildSet, and buildMap

This article explains how Kotlin's standard library provides concise builder functions such as buildList, buildSet, buildMap, and buildString to create immutable collections and strings efficiently, reducing boilerplate and eliminating lambda overhead while offering specialized variants for primitive types.

CollectionsKotlinList
0 likes · 7 min read
Simplify Kotlin Collections Creation with buildList, buildSet, and buildMap
Lin is Dream
Lin is Dream
Jun 9, 2025 · Backend Development

Master Java Stream API: Real‑World Examples Covering 90% of Business Scenarios

This article introduces Java 8 functional programming concepts such as lambda expressions and method references, explains the Stream API, and provides dozens of practical code snippets for querying, grouping, aggregating, sorting, partitioning, and parallel processing of collections, helping developers handle most everyday business logic efficiently.

CollectionsJavaLambda
0 likes · 14 min read
Master Java Stream API: Real‑World Examples Covering 90% of Business Scenarios
Su San Talks Tech
Su San Talks Tech
May 8, 2025 · Backend Development

Boost Your Java Productivity: Essential Utility Classes You Should Know

This article introduces nine indispensable Java utility classes—including Collections, CollectionUtils, Lists, Objects, StringUtils, BeanUtils, ReflectionUtils, DigestUtils, and HttpStatus—showing how each can simplify common tasks, reduce boilerplate code, and improve development efficiency with clear examples and code snippets.

Apache CommonsCollectionsJava
0 likes · 20 min read
Boost Your Java Productivity: Essential Utility Classes You Should Know
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
Architecture Digest
Architecture Digest
Mar 18, 2025 · Fundamentals

Understanding Java foreach Loop, HashMap Iteration, and ConcurrentModificationException

This article explains how Java's foreach loop is implemented using iterators, demonstrates the bytecode differences between array and collection traversal, analyzes why modifying a HashMap during foreach can trigger ConcurrentModificationException, and shows the correct way to safely modify collections with an iterator.

CollectionsConcurrentModificationExceptionHashMap
0 likes · 11 min read
Understanding Java foreach Loop, HashMap Iteration, and ConcurrentModificationException
Python Programming Learning Circle
Python Programming Learning Circle
Mar 12, 2025 · Fundamentals

Python Essentials: Strings, Collections, Iterators, and Decorators

This article presents a comprehensive collection of Python fundamentals, covering useful string methods like partition and translate, mutable versus immutable types and argument passing, tuple unpacking, dictionary utilities, set operations, iterator implementations, best practices for exception handling, and various decorator techniques with practical code examples.

CollectionsIteratorsPython
0 likes · 16 min read
Python Essentials: Strings, Collections, Iterators, and Decorators
Java Tech Enthusiast
Java Tech Enthusiast
Mar 4, 2025 · Fundamentals

Java 8 Map API Enhancements

Java 8 enriches the Map interface with default methods such as getOrDefault, forEach, merge, putIfAbsent, compute, computeIfAbsent, computeIfPresent and replace, allowing developers to retrieve values with fallbacks, iterate entries, combine or conditionally update entries, and thus write more concise, readable code with far less boilerplate.

APICollectionsJDK8
0 likes · 9 min read
Java 8 Map API Enhancements
Ma Wei Says
Ma Wei Says
Feb 19, 2025 · Fundamentals

Safe List Operations: Remove, SubList Casting, and Efficient Traversal in Java

This article explains why modifying a List inside a foreach loop causes ConcurrentModificationException, shows the proper ways to remove elements using iterators or lambda expressions, warns against casting subList to ArrayList, clarifies correct toArray and Arrays.asList usage, compares LinkedList and ArrayList performance, and recommends the most efficient traversal techniques.

CollectionsIteratorJava
0 likes · 9 min read
Safe List Operations: Remove, SubList Casting, and Efficient Traversal 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.asListBackend Development
0 likes · 9 min read
Why Arrays.asList() Can Crash Your Java App and How to Fix It
php Courses
php Courses
Feb 6, 2025 · Backend Development

Data Structures in PHP and Laravel: Best Practices and Optimization

This article examines core and advanced data structures in PHP and Laravel, demonstrating how arrays, associative and multidimensional arrays, collections, and JSON storage can be leveraged with practical code examples and query‑optimization techniques to build efficient, scalable, and maintainable web applications.

CollectionsData StructuresLaravel
0 likes · 7 min read
Data Structures in PHP and Laravel: Best Practices and Optimization
Python Programming Learning Circle
Python Programming Learning Circle
Jan 7, 2025 · Fundamentals

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

This article presents a collection of practical Python techniques—including one‑line variable swapping, list, set and dictionary comprehensions, the Counter class for counting, pretty‑printing JSON, inline conditional expressions, list slicing, itertools combinations, and a quirky False‑equals‑True example—each illustrated with concise code snippets and explanations.

CollectionsComprehensionsData Structures
0 likes · 9 min read
Python Tips and Tricks: Variable Swapping, Comprehensions, Counter, JSON Pretty‑Print, FizzBuzz, and More
macrozheng
macrozheng
Dec 30, 2024 · Backend Development

Master Java Stream API: From Basics to Advanced Collection Operations

This article introduces Java Stream API introduced in JDK 8, explains its pipeline concept, and demonstrates practical operations such as traversal, filtering, deduplication, type conversion, collection‑to‑map transformations, pagination, matching, and parallel processing with clear code examples.

BackendCollectionsJava
0 likes · 15 min read
Master Java Stream API: From Basics to Advanced Collection Operations
Architecture Digest
Architecture Digest
Dec 9, 2024 · Fundamentals

Efficient Null Checks in Java Using Utility Classes

This article explains how to efficiently perform null checks in Java by selecting appropriate utility classes such as StringUtils, ObjectUtils, Collections, and CollectionUtils for different data types, and also includes a brief notice about a free programmer book giveaway.

CollectionsJavaObjectUtils
0 likes · 9 min read
Efficient Null Checks in Java Using Utility Classes
Top Architect
Top Architect
Nov 28, 2024 · Backend Development

A Comprehensive Guide to Java Enums: Basics, Advanced Usage, and Design Patterns

This article explains Java enums introduced in Java 5, shows how to define simple and complex enum types, demonstrates their use in comparisons, switch statements, collections like EnumSet and EnumMap, and illustrates applying enums to design patterns such as Singleton and Strategy, while providing practical code examples and JSON serialization techniques.

CollectionsDesign PatternsJava
0 likes · 16 min read
A Comprehensive Guide to Java Enums: Basics, Advanced Usage, and Design Patterns
Python Programming Learning Circle
Python Programming Learning Circle
Nov 23, 2024 · Fundamentals

Advanced Python Concepts: Exception Handling, Collections, itertools, Lambdas, Decorators, Generators, Threads, Dunder Methods, Logging, and Context Managers

This article introduces ten advanced Python topics—including exception handling, the collections and itertools modules, lambda functions, decorators, generators, threading, dunder methods, logging, and context managers—providing explanations, code examples, and practical tips to help developers deepen their programming skills and prepare for interviews.

AdvancedCollectionsGenerators
0 likes · 13 min read
Advanced Python Concepts: Exception Handling, Collections, itertools, Lambdas, Decorators, Generators, Threads, Dunder Methods, Logging, and Context Managers
Java Captain
Java Captain
Nov 19, 2024 · Backend Development

Optimizing Nested Loop Data Matching with a Map in Java

This article demonstrates how replacing a costly nested‑loop search for matching user IDs with a pre‑built HashMap dramatically reduces processing time from tens of seconds to a few seconds, explaining the underlying time‑complexity benefits and providing complete Java code examples.

CollectionsHashMapNested Loop
0 likes · 6 min read
Optimizing Nested Loop Data Matching with a Map in Java
Architecture Digest
Architecture Digest
Oct 31, 2024 · Backend Development

Java 8 Map New Methods: getOrDefault, forEach, merge, putIfAbsent, compute, computeIfAbsent, computeIfPresent, replace

This article introduces the Java 8 Map API enhancements—including getOrDefault, forEach, merge, putIfAbsent, compute, computeIfAbsent, computeIfPresent, and replace—explaining their purpose, showing concise code examples, and demonstrating how they simplify common map‑handling scenarios.

CollectionsJDK8MAP
0 likes · 9 min read
Java 8 Map New Methods: getOrDefault, forEach, merge, putIfAbsent, compute, computeIfAbsent, computeIfPresent, replace
Top Architect
Top Architect
Oct 31, 2024 · Backend Development

Using Java 8 Stream API for POJO Collection Processing

This article introduces Java 8 Stream API, demonstrates filtering, mapping, sorting, collecting, and parallel streams with POJO examples, including code snippets, performance tips, and links to related resources, while also containing promotional messages for ChatGPT services.

CollectionsJavaJava 8
0 likes · 11 min read
Using Java 8 Stream API for POJO Collection Processing
Selected Java Interview Questions
Selected Java Interview Questions
Oct 22, 2024 · Backend Development

Common Java Stream API Programming and Operations

This article introduces Java 8's Stream API, explains how to create streams from collections and arrays, and demonstrates a wide range of intermediate and terminal operations with clear code examples to help developers write concise, efficient, and readable Java code.

Backend DevelopmentCollectionsJava
0 likes · 9 min read
Common Java Stream API Programming and Operations
Su San Talks Tech
Su San Talks Tech
Oct 7, 2024 · Backend Development

Unlock Java Power: 10 Must‑Know Guava Features for Cleaner Code

This guide introduces Google’s Guava library for Java, covering Maven integration, data validation with Preconditions, immutable collections, factory methods, counting collections, multimap usage, advanced string joining and splitting, and simple caching, showing how each feature can make code cleaner, safer, and more efficient.

CollectionsGuavaJava
0 likes · 16 min read
Unlock Java Power: 10 Must‑Know Guava Features for Cleaner Code
Python Programming Learning Circle
Python Programming Learning Circle
Sep 21, 2024 · Fundamentals

Python Essentials: CSV Handling, itertools, collections, Debugging, and Performance Tips

This article provides a comprehensive guide to Python fundamentals, covering CSV file reading and writing, powerful iterator utilities from itertools, advanced collection types like Counter, defaultdict and OrderedDict, techniques for error and warning output, code debugging, style checking, profiling, and practical performance‑optimisation principles.

CSVCollectionsDebugging
0 likes · 10 min read
Python Essentials: CSV Handling, itertools, collections, Debugging, and Performance Tips
Top Architect
Top Architect
Aug 19, 2024 · Backend Development

Using Java 8 Stream API for Collection Processing

This article introduces Java 8's Stream API, explains its functional style for handling collections, demonstrates common operations such as filter, map, sorted, forEach, collect, statistics, and parallelStream with concrete POJO examples, and provides a complete runnable code sample.

CollectionsJavaLambda
0 likes · 10 min read
Using Java 8 Stream API for Collection Processing
Top Architect
Top Architect
Jul 8, 2024 · Backend Development

Using Java 8 Stream API for Collection Processing with Practical Examples

This article introduces Java 8 Stream API, explaining its declarative approach to processing collections, and demonstrates common operations such as filter, map, sorted, forEach, collect, statistics, and parallelStream with a PO class example, while also including full source code and brief promotional notes.

CollectionsJavaLambda
0 likes · 11 min read
Using Java 8 Stream API for Collection Processing with Practical Examples
Test Development Learning Exchange
Test Development Learning Exchange
Jun 26, 2024 · Fundamentals

Python collections module: Counter, defaultdict, deque, namedtuple, ChainMap, custom containers, heapq, and LRU cache examples

This article introduces several useful classes from Python's collections module—including Counter, defaultdict, deque, namedtuple, ChainMap, UserList/UserDict/UserString, as well as heapq and an OrderedDict‑based LRU cache—explaining their purposes and providing ready‑to‑run code examples for each.

ChainMapCollectionsCounter
0 likes · 6 min read
Python collections module: Counter, defaultdict, deque, namedtuple, ChainMap, custom containers, heapq, and LRU cache examples
Cognitive Technology Team
Cognitive Technology Team
Jun 23, 2024 · Fundamentals

Understanding Fail-Fast Iterators and ConcurrentModificationException in Java Collections

The article explains why fail‑fast iterators throw ConcurrentModificationException when a collection is modified during iteration, outlines two common scenarios that trigger the exception, and presents both incorrect and correct Java code examples along with strategies such as avoiding modifications, using synchronization, iterator.remove(), or switching to fail‑safe concurrent collections.

CollectionsConcurrentModificationExceptionFail-Fast Iterator
0 likes · 5 min read
Understanding Fail-Fast Iterators and ConcurrentModificationException in Java Collections
Programmer DD
Programmer DD
Jun 4, 2024 · Backend Development

8 Essential Java Stream APIs to Simplify Collection Processing

This article introduces eight ready‑to‑use Java Stream APIs—including Stream.ofNullable, Stream.iterate, collectingAndThen, dropWhile/takeWhile, IntStream, teeing, concat, and partitioningBy—showing how each can cleanly handle nulls, generate sequences, transform collections, and combine streams with concise code examples.

CollectionsJavaJava 12
0 likes · 7 min read
8 Essential Java Stream APIs to Simplify Collection Processing
Architect's Guide
Architect's Guide
Jun 2, 2024 · Fundamentals

Pitfalls and Best Practices of Arrays.asList and ArrayList.subList in Java

This article explains how Java's Arrays.asList creates a fixed‑size list that throws UnsupportedOperationException on add/remove, and how ArrayList.subList returns a mutable view whose non‑structural changes affect both the original list and the sublist while structural changes can trigger ConcurrentModificationException, providing code examples and practical guidelines.

Arrays.asListCollectionsConcurrentModificationException
0 likes · 9 min read
Pitfalls and Best Practices of Arrays.asList and ArrayList.subList in Java
Java Tech Enthusiast
Java Tech Enthusiast
May 1, 2024 · Fundamentals

Pitfalls of Arrays.asList in Java

Java's Arrays.asList method has three major pitfalls: it cannot directly convert primitive arrays like int[] because of autoboxing limits, it returns a fixed-size list that throws UnsupportedOperationException on modification, and the list shares its backing array so changes to the original array are reflected in the list; using Arrays.stream for boxing or wrapping the result in a new ArrayList avoids these issues.

Arrays.asListCode ExamplesCollections
0 likes · 4 min read
Pitfalls of Arrays.asList in Java
Python Programming Learning Circle
Python Programming Learning Circle
Apr 22, 2024 · Fundamentals

Advanced Python Concepts: Exception Handling, Collections, itertools, Decorators, Generators, and More

This tutorial covers a range of advanced Python topics—including exception handling, the collections module, itertools utilities, lambda functions, decorators, generators, threading, dunder methods, logging, and context managers—to help developers deepen their programming expertise and apply these techniques in real projects.

AdvancedCollectionsGenerators
0 likes · 13 min read
Advanced Python Concepts: Exception Handling, Collections, itertools, Decorators, Generators, and More
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Dec 30, 2023 · Backend Development

Unlock Java 8 Streams: Simplify Collections with Powerful Operations

This article introduces Java 8 Stream API, explains how to create streams from collections, demonstrates common intermediate operations such as filter, map, flatMap, limit, skip, distinct, sorted, peek, and shows terminal actions like forEach, count, max, min, findFirst, findAny, and match methods with practical code examples.

CollectionsIntermediate OperationsJava
0 likes · 17 min read
Unlock Java 8 Streams: Simplify Collections with Powerful Operations
Architecture & Thinking
Architecture & Thinking
Nov 13, 2023 · Fundamentals

Mastering Java Collections: From Interfaces to Iterators

This comprehensive guide explains Java's collection framework, covering the core interfaces Collection, List, Set, and Map, their abstract and concrete implementations, iterator mechanisms, and key differences that are essential for both interview preparation and real‑world backend development.

BackendCollectionsIterator
0 likes · 29 min read
Mastering Java Collections: From Interfaces to Iterators
macrozheng
macrozheng
Nov 2, 2023 · Fundamentals

When to Use List.of vs Arrays.asList in Java: Immutable vs Mutable Lists Explained

This article compares Java's List.of() and Arrays.asList() methods, detailing their immutable versus mutable characteristics, handling of nulls, size constraints, and underlying array behavior, and provides practical code examples and guidance on choosing the appropriate method for different programming scenarios.

Arrays.asListCollectionsImmutable List
0 likes · 7 min read
When to Use List.of vs Arrays.asList in Java: Immutable vs Mutable Lists Explained
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 26, 2023 · Backend Development

Using Java Lambda Expressions to Simplify Collection Operations

This article explains how Java lambda expressions and the Stream API can replace verbose loops, comparators, and aggregation code with concise, readable functional constructs, covering traversal, sorting, aggregation, optional handling, thread creation, mapping, grouping, and parallel processing of collections.

CollectionsJavaLambda
0 likes · 10 min read
Using Java Lambda Expressions to Simplify Collection Operations
Top Architect
Top Architect
Oct 11, 2023 · Backend Development

Comprehensive Guide to Java 8 Stream API with Practical Code Examples

This article provides an in-depth tutorial on Java 8 Stream API, covering its concepts, creation methods, intermediate and terminal operations, mapping, reduction, collection, grouping, sorting, and includes numerous practical code examples to help developers master functional programming with streams.

Code ExamplesCollectionsJava
0 likes · 26 min read
Comprehensive Guide to Java 8 Stream API with Practical Code Examples
Architect
Architect
Sep 27, 2023 · Backend Development

Comprehensive Guide to Java Stream API: Concepts, Operations, and Practical Examples

Java Stream API enables functional-style, declarative processing of collections and other data sources, offering lazy evaluation, parallel execution, and a rich set of intermediate and terminal operations such as filter, map, sorted, reduce, and collect, with examples illustrating creation, transformation, and practical usage.

CollectionsJavaStream API
0 likes · 38 min read
Comprehensive Guide to Java Stream API: Concepts, Operations, and Practical Examples
Java Architecture Diary
Java Architecture Diary
Sep 18, 2023 · Fundamentals

What’s New in Java 21? Explore Updated String, Collections, and More

This article walks through the latest Java 21 additions—including enhanced String search methods, new Emoji utilities in Character, repeat() for StringBuilder and StringBuffer, updated Charset factories, named regex groups, SequencedCollection interfaces, localized DateTimeFormatter patterns, extended Math and BigInteger operations, and improved Thread and Future APIs—providing code examples and usage guidance.

APICollectionsString
0 likes · 13 min read
What’s New in Java 21? Explore Updated String, Collections, and More
Java Architect Essentials
Java Architect Essentials
Aug 31, 2023 · Backend Development

Comprehensive Guide to Java 8 Stream API with Practical Examples

This article provides an in‑depth tutorial on Java 8 Stream API, explaining its concepts, intermediate and terminal operations, and demonstrating over twenty practical code examples—including filtering, mapping, reducing, collecting, grouping, and parallel streams—to help developers master functional-style data processing in Java.

CollectionsJavaLambda
0 likes · 21 min read
Comprehensive Guide to Java 8 Stream API with Practical Examples
Architecture Digest
Architecture Digest
Aug 14, 2023 · Backend Development

Java 8 Stream API Tutorial: 20 Practical Examples for Filtering, Mapping, Reducing, and More

This comprehensive tutorial explains Java 8's Stream API and Lambda expressions, demonstrating how to create streams from collections and arrays, perform intermediate operations like filter, map, flatMap, and sorted, and use terminal operations such as forEach, findFirst, reduce, and collect through twenty detailed code examples covering employee data processing, aggregation, grouping, and sorting.

CollectionsJavaJava 8
0 likes · 21 min read
Java 8 Stream API Tutorial: 20 Practical Examples for Filtering, Mapping, Reducing, and More
Java Architect Essentials
Java Architect Essentials
Aug 6, 2023 · Fundamentals

Master Java Generics: From Basics to Advanced Customizations

This article explains why Java generics were introduced, outlines their benefits for type safety and code clarity, demonstrates common generic interfaces and collections, dives into usage details such as inheritance and shorthand forms, and shows how to create custom generic classes, methods, and avoid typical pitfalls.

CollectionsCustom Generic MethodsGenerics
0 likes · 9 min read
Master Java Generics: From Basics to Advanced Customizations
Architect's Tech Stack
Architect's Tech Stack
Aug 3, 2023 · Fundamentals

Performance Comparison of Different Java List Deduplication Methods

This article examines several Java deduplication techniques—including List.contains, HashSet, double-loop removal, and Stream.distinct—by providing sample code, measuring execution time on a 20,000‑element list, and analyzing their time complexities to guide developers toward efficient duplicate‑removal strategies.

CollectionsJavaStream
0 likes · 7 min read
Performance Comparison of Different Java List Deduplication Methods
Java Backend Technology
Java Backend Technology
Mar 14, 2023 · Backend Development

Mastering Google Guava: Powerful Java Utilities for Cleaner Code

This article explores Google Guava’s rich set of utilities—including Joiner, Splitter, CharMatcher, Multiset, Multimap, BiMap, Table, Functions, Predicate, Optional, Preconditions, and Cache—demonstrating how they simplify string handling, collections, immutability, caching, and asynchronous callbacks for more elegant Java development.

CollectionsGoogle GuavaJava
0 likes · 11 min read
Mastering Google Guava: Powerful Java Utilities for Cleaner Code
The Dominant Programmer
The Dominant Programmer
Feb 9, 2023 · Fundamentals

Comprehensive Guava Tutorial Collection for Java Developers

Guava is Google's open‑source Java core library offering utilities such as data validation, immutable collections, caching, and string handling; this article introduces the library and provides ten detailed tutorial links covering Optional, Preconditions, Ordering, concurrency tools, range operations, collection helpers, caching, and more.

CollectionsGoogleGuava
0 likes · 4 min read
Comprehensive Guava Tutorial Collection for Java Developers
Su San Talks Tech
Su San Talks Tech
Nov 26, 2022 · Fundamentals

Unlock Java Power: Master Guava’s Joiner, Splitter, CharMatcher & More

This article explores Google Guava’s most useful utilities—including Joiner, Splitter, CharMatcher, Multiset, Immutable collections, Multimap, BiMap, Table, Functions, Predicate, and Cache—showing how they simplify string handling, collection manipulation, caching, and asynchronous callbacks, with practical code examples and performance insights.

CollectionsGuavaJava
0 likes · 10 min read
Unlock Java Power: Master Guava’s Joiner, Splitter, CharMatcher & More
Java Architect Essentials
Java Architect Essentials
Nov 25, 2022 · Backend Development

Understanding HashMap Initial Capacity and Proper Usage in Java

This article explains why specifying an initial capacity for Java's HashMap matters, demonstrates common mistakes, walks through the source‑code calculation of the capacity and resize threshold, and provides guidelines on choosing the correct capacity to avoid unnecessary rehashing and improve performance.

CollectionsHashMapinitial capacity
0 likes · 7 min read
Understanding HashMap Initial Capacity and Proper Usage in Java
Architect's Tech Stack
Architect's Tech Stack
Oct 17, 2022 · Backend Development

A Comprehensive Guide to Google Guava Utilities in Java

This article introduces Google Guava's powerful utilities—including Joiner, Splitter, CharMatcher, Multiset, Multimap, BiMap, Table, Functions, Predicate, Cache, and asynchronous callbacks—explaining their advantages over standard JDK classes and demonstrating practical usage with code examples for Java developers.

Backend DevelopmentCacheCollections
0 likes · 10 min read
A Comprehensive Guide to Google Guava Utilities in Java
Selected Java Interview Questions
Selected Java Interview Questions
Sep 29, 2022 · Backend Development

Comprehensive Guide to Java Stream API and Optional Usage

This article provides an in‑depth tutorial on Java 8 Stream operations—including creation, intermediate and terminal operations, parallel streams, reduction, collection, and conversion—followed by a detailed explanation of the Optional class with examples of creation, presence checks, default values, filtering, mapping, and practical usage patterns.

CollectionsJava 8Stream API
0 likes · 17 min read
Comprehensive Guide to Java Stream API and Optional Usage
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 Architect Essentials
Java Architect Essentials
Sep 8, 2022 · Backend Development

A Comprehensive Guide to Google Guava: Joiner, Splitter, CharMatcher, Collections, Multimap, BiMap, Cache and More

This article introduces Google Guava’s rich set of utilities for Java developers, covering string handling with Joiner/Splitter, character matching, primitive extensions, advanced collection types such as Multiset, Multimap, BiMap, Table, functional helpers, null‑checking, local caching, and asynchronous callbacks, all illustrated with examples and images.

CacheCollectionsGuava
0 likes · 10 min read
A Comprehensive Guide to Google Guava: Joiner, Splitter, CharMatcher, Collections, Multimap, BiMap, Cache and More
Cognitive Technology Team
Cognitive Technology Team
Aug 6, 2022 · Backend Development

Common Pitfalls of java.util.Arrays.asList in Java

This article explains three major pitfalls when using java.util.Arrays.asList: passing primitive arrays, attempting to modify the returned list, and misunderstanding that the list shares the original array, providing code examples and proper alternatives for each case.

Arrays.asListBackend DevelopmentCollections
0 likes · 6 min read
Common Pitfalls of java.util.Arrays.asList in Java
Selected Java Interview Questions
Selected Java Interview Questions
Aug 4, 2022 · Fundamentals

Understanding Java Generics: Concepts, Benefits, Common Uses, and Custom Implementations

This article explains the purpose of Java generics, their advantages for type safety and code robustness, demonstrates typical generic interfaces and collections with code examples, and discusses detailed usage rules, inheritance behavior, shorthand syntax, and how to create custom generic classes and methods.

CollectionsGenericsType Safety
0 likes · 9 min read
Understanding Java Generics: Concepts, Benefits, Common Uses, and Custom Implementations
The Dominant Programmer
The Dominant Programmer
Jul 31, 2022 · Fundamentals

How Java 8 Stream API Can Multiply Your Coding Efficiency

The article introduces Java 8’s Stream API, showing how to create streams from collections, arrays, and static methods, and demonstrates common operations such as filter, map, flatMap, reduce, collect, grouping, sorting, and limiting, with concrete code examples that replace verbose loops and improve readability.

CollectionsJavaJava 8
0 likes · 9 min read
How Java 8 Stream API Can Multiply Your Coding Efficiency
Top Architect
Top Architect
Jul 23, 2022 · Backend Development

Four Methods to Traverse a Java Map Using keySet, entrySet and Iterators

This article demonstrates four practical ways to iterate over a Java HashMap—including enhanced for loops with keySet(), iterator-based loops with keySet(), enhanced for loops with entrySet(), and iterator-based loops with entrySet()—and provides a complete example that filters employee objects by salary, complete with full source code.

BackendCollectionsHashMap
0 likes · 10 min read
Four Methods to Traverse a Java Map Using keySet, entrySet and Iterators
MaGe Linux Operations
MaGe Linux Operations
Jul 14, 2022 · Backend Development

Master Postman: From Installation to Advanced API Testing Features

This comprehensive guide walks you through Postman's installation, interface navigation, basic request types, response parsing, collection management, batch execution, logging, assertions, variables, pre‑request scripts, request chaining, and common value extraction, providing practical steps and code examples for effective API testing.

API testingAutomationCollections
0 likes · 23 min read
Master Postman: From Installation to Advanced API Testing Features
Selected Java Interview Questions
Selected Java Interview Questions
Jun 6, 2022 · Backend Development

Java 8 Stream API Tutorial with POJO Examples

This article introduces Java 8's Stream API, explains its declarative data‑processing style, and demonstrates common operations such as filter, map, sorted, forEach, collect, statistics, and parallelStream using a UserPo class with full runnable code examples.

CollectionsLambdaStream API
0 likes · 8 min read
Java 8 Stream API Tutorial with POJO Examples
Cognitive Technology Team
Cognitive Technology Team
Apr 4, 2022 · Fundamentals

Why Removing Elements from a HashMap During a For‑Each Loop Causes ConcurrentModificationException and How to Fix It

Iterating a HashMap with a for‑each loop while calling its remove method triggers a ConcurrentModificationException because the loop uses an internal iterator that becomes inconsistent with the map’s modCount, and the article explains the cause, shows decompiled code, and provides correct removal approaches using the iterator or removeIf.

CollectionsConcurrentModificationExceptionHashMap
0 likes · 6 min read
Why Removing Elements from a HashMap During a For‑Each Loop Causes ConcurrentModificationException and How to Fix It
Alibaba Cloud Developer
Alibaba Cloud Developer
Mar 18, 2022 · Backend Development

13 Crucial Java Practices Every Developer Should Follow

This article examines fifteen common Java pitfalls and best‑practice guidelines—ranging from property copying and date formatting to HashMap sizing, thread‑pool creation, collection handling, logging, and serialization—explaining why each recommendation exists and how it impacts performance and safety.

CollectionsJavaSQL
0 likes · 9 min read
13 Crucial Java Practices Every Developer Should Follow
MaGe Linux Operations
MaGe Linux Operations
Jan 29, 2022 · Fundamentals

Master Python’s Powerful Containers: Counter, defaultdict, OrderedDict, deque & ChainMap

This article introduces Python’s collections module as a versatile alternative to built‑in containers, detailing the purpose, key methods, and practical code examples for Counter, defaultdict, OrderedDict, namedtuple, deque, and ChainMap, helping developers choose the right specialized container for their tasks.

ChainMapCollectionsCounter
0 likes · 11 min read
Master Python’s Powerful Containers: Counter, defaultdict, OrderedDict, deque & ChainMap
Programmer DD
Programmer DD
Jan 13, 2022 · Backend Development

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

This article explains the hidden pitfalls of Java's Arrays.asList and ArrayList.subList methods, showing why add operations may trigger UnsupportedOperationException and how modifications to original or sub‑lists can cause ConcurrentModificationException, with code examples and visual illustrations.

Arrays.asListCollectionsException
0 likes · 8 min read
Why Arrays.asList and subList Can Throw Unexpected Exceptions in Java