Tagged articles
97 articles
Page 1 of 1
Coder Trainee
Coder Trainee
Mar 1, 2026 · Backend Development

Using Java Optional to Eliminate NullPointerException

The article explains how Java 8's Optional class can prevent NullPointerException by introducing common methods such as empty, of, isPresent, orElse, orElseGet, and orElseThrow, and demonstrates their usage with a complete code example and its output.

functional programmingjava8nullpointerexception
0 likes · 4 min read
Using Java Optional to Eliminate NullPointerException
IT Services Circle
IT Services Circle
Sep 12, 2025 · Fundamentals

Is Java 8 Dead? Explore Essential Features from Java 8 to Java 24

This article walks through why Java 8 is being retired and highlights the most useful language features introduced from Java 8 through Java 24—including lambdas, streams, optional, records, sealed classes, virtual threads, and the new Stream Gatherers—providing code examples and practical guidance for modern Java development.

SealedClassesVirtualThreadsjava
0 likes · 46 min read
Is Java 8 Dead? Explore Essential Features from Java 8 to Java 24
Java Backend Technology
Java Backend Technology
Sep 1, 2025 · Backend Development

Mastering Java 8 Functional Interfaces: Cleaner Code with Function, Supplier, Consumer & Runnable

This article explains Java 8's functional interfaces—including Function, Supplier, Consumer, and Runnable—showing how to replace verbose if‑else and exception handling with concise lambda expressions, and provides reusable utility interfaces for branching, present‑or‑else logic, and exception throwing.

Functional InterfaceLambdajava8
0 likes · 6 min read
Mastering Java 8 Functional Interfaces: Cleaner Code with Function, Supplier, Consumer & Runnable
Code Ape Tech Column
Code Ape Tech Column
Aug 7, 2025 · Backend Development

Replace Cluttered if…else with Java 8 Functional Interfaces

This article shows how to eliminate repetitive if…else statements in Java code by leveraging Java 8 functional interfaces such as Supplier, Consumer, Runnable, and custom interfaces for exception handling, branch processing, and null‑value handling, complete with code examples and diagrams.

BackendFunctional InterfaceLambda
0 likes · 6 min read
Replace Cluttered if…else with Java 8 Functional Interfaces
Architect's Guide
Architect's Guide
Feb 24, 2025 · Backend Development

Using Java Optional to Prevent NullPointerException

This article introduces Java 8's Optional class, explains its creation methods and common operations such as get, isPresent, ifPresent, filter, map, flatMap, orElse, orElseGet, orElseThrow, and shows practical usage scenarios and best‑practice recommendations for handling null values in backend code.

Backendfunctional programmingjava
0 likes · 15 min read
Using Java Optional to Prevent NullPointerException
Java Architect Essentials
Java Architect Essentials
Jan 3, 2025 · Backend Development

Using Java 8 Optional to Prevent NullPointerException: Methods, Examples, and Best Practices

This article introduces Java 8's Optional class as a robust solution for avoiding NullPointerException, explains its creation methods, demonstrates common operations such as get, isPresent, ifPresent, filter, map, flatMap, orElse, orElseGet, orElseThrow, and provides practical usage scenarios and cautions for developers.

BestPracticesjavajava8
0 likes · 16 min read
Using Java 8 Optional to Prevent NullPointerException: Methods, Examples, and Best Practices
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.

BackendCollectionsStream API
0 likes · 15 min read
Master Java Stream API: From Basics to Advanced Collection Operations
macrozheng
macrozheng
Dec 19, 2024 · Backend Development

Master Java Optional: Clean Null Handling with Real-World Examples

This article introduces Java's Optional class, explains why null checks cause clutter, demonstrates how to replace traditional three‑level null‑checking with concise Optional chains, and provides detailed examples of all core Optional methods such as empty, of, ofNullable, isPresent, get, ifPresent, filter, map, flatMap, orElse, orElseGet, and orElseThrow.

Backendjavajava8
0 likes · 11 min read
Master Java Optional: Clean Null Handling with Real-World Examples
macrozheng
macrozheng
Jul 23, 2024 · Fundamentals

Mastering Java Optional: Eliminate NullPointerExceptions with Clean Code

This article explains why NullPointerExceptions occur, introduces Java's Optional as a concise alternative to explicit null checks, demonstrates practical code transformations, and reviews all core Optional methods introduced in JDK 8 to improve readability and safety of Java applications.

CodeCleanlinessjavajava8
0 likes · 10 min read
Mastering Java Optional: Eliminate NullPointerExceptions with Clean Code
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.

CollectionsLambdaStream API
0 likes · 11 min read
Using Java 8 Stream API for Collection Processing with Practical Examples
Top Architect
Top Architect
Apr 26, 2024 · 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 stream creation, intermediate and terminal operations, filtering, mapping, reduction, collection, sorting, grouping, and practical code examples, helping developers master functional programming with streams in Java.

Code ExamplesStream APIfunctional programming
0 likes · 24 min read
Comprehensive Guide to Java 8 Stream API with Practical Examples
dbaplus Community
dbaplus Community
Mar 21, 2024 · Fundamentals

Why NullPointerExceptions Haunt Java Developers and How to Defeat Them

The article explores the notorious Java NullPointerException, its historical roots in Tony Hoare's introduction of null, modern JDK 14 diagnostic improvements, and practical defensive programming techniques—including explicit null checks, avoiding null returns, and leveraging Optional—to write safer, more robust code.

defensive programmingjava8nullpointerexception
0 likes · 6 min read
Why NullPointerExceptions Haunt Java Developers and How to Defeat Them
Top Architect
Top Architect
Jan 31, 2024 · Backend Development

Java 8 Functional Interfaces and Stream Operations: A Comprehensive Guide

This article explains Java 8's lambda expressions and functional interfaces, demonstrates common functional interfaces with code examples, and shows how to use Stream API operations such as filter, map, flatMap, collect, max/min, count, reduce, and advanced collectors for efficient backend development.

Functional InterfacesLambdaStreams
0 likes · 14 min read
Java 8 Functional Interfaces and Stream Operations: A Comprehensive Guide
Architecture Digest
Architecture Digest
Jan 25, 2024 · Backend Development

Understanding Java 8 Functional Interfaces and Stream Operations

This article explains Java 8's lambda expressions, functional interfaces, and the Stream API, demonstrating how immutable values and functions enable concise data processing through lazy and eager evaluation, with practical code examples covering predicates, consumers, mapping, filtering, grouping, and reduction.

CollectorsFunctional InterfacesLambda
0 likes · 12 min read
Understanding Java 8 Functional Interfaces and Stream Operations
Java Architect Essentials
Java Architect Essentials
Dec 4, 2023 · Fundamentals

Top Java Features Since Java 8 Every Developer Should Know

This article surveys the most popular Java language enhancements introduced from Java 8 through Java 20—including var type inference, switch expressions, text blocks, records, pattern‑matching instanceof, sealed classes, and improved NullPointerExceptions—providing concise explanations and visual examples to help developers decide which features to adopt during migration.

fundamentalsjavajava17
0 likes · 7 min read
Top Java Features Since Java 8 Every Developer Should Know
TAL Education Technology
TAL Education Technology
Nov 2, 2023 · Backend Development

Java CompletableFuture: Creation, Asynchronous Callbacks, Composition, and Thread‑Pool Configuration

This article explains Java's CompletableFuture utility introduced in Java 8, covering its creation methods, asynchronous callback functions, exception handling, task composition, combination operators, underlying implementation details, and best practices for configuring thread pools to achieve efficient concurrent execution.

AsyncCompletableFutureThreadPool
0 likes · 32 min read
Java CompletableFuture: Creation, Asynchronous Callbacks, Composition, and Thread‑Pool Configuration
Java Architect Essentials
Java Architect Essentials
Nov 1, 2023 · Backend Development

Understanding Java 8 Optional API: Methods, Usage, and Practical Examples

This article explains how Java 8's Optional class helps avoid NullPointerException by providing a fluent API—including ofNullable, empty, orElse, map, flatMap, filter, and other methods—along with concrete code examples that demonstrate refactoring traditional null‑check logic into concise, functional style.

Code Refactoringfunctional programmingjava
0 likes · 10 min read
Understanding Java 8 Optional API: Methods, Usage, and Practical Examples
Architect
Architect
Oct 11, 2023 · Backend Development

Understanding and Using Java Optional to Avoid NullPointerException

This article explains the purpose and usage of Java 8's Optional class, demonstrates how to create and manipulate Optional objects, compares its various methods such as get, isPresent, ifPresent, filter, map, flatMap, orElse, orElseGet, orElseThrow, and highlights JDK 9 enhancements and practical best‑practice scenarios.

best practicesjavajava8
0 likes · 15 min read
Understanding and Using Java Optional to Avoid NullPointerException
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 ExamplesCollectionsStream API
0 likes · 26 min read
Comprehensive Guide to Java 8 Stream API with Practical Code Examples
Architecture Digest
Architecture Digest
Sep 18, 2023 · Backend Development

Using Java 8 Optional to Avoid NullPointerException: API Overview and Practical Examples

This article explains the NullPointerException problem in Java, introduces the Java 8 Optional class, details its constructors and key methods such as of, ofNullable, empty, orElse, orElseGet, orElseThrow, map, flatMap, isPresent, ifPresent, and filter, and provides practical code examples demonstrating more elegant null‑handling.

APIFunctionalProgrammingjava
0 likes · 10 min read
Using Java 8 Optional to Avoid NullPointerException: API Overview and Practical Examples
Architect's Guide
Architect's Guide
Sep 12, 2023 · Backend Development

Using Java 8 Optional API to Eliminate NullPointerException

This article explains how Java 8's Optional class and its methods—of, ofNullable, empty, orElse, orElseGet, orElseThrow, map, flatMap, isPresent, ifPresent, and filter—can replace verbose null‑checks, making code more concise and safer while providing concrete examples and source code.

APIBackendfunctional programming
0 likes · 10 min read
Using Java 8 Optional API to Eliminate NullPointerException
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.

CollectionsLambdaStream API
0 likes · 21 min read
Comprehensive Guide to Java 8 Stream API with Practical Examples
Architecture Digest
Architecture Digest
Jul 25, 2023 · Backend Development

Understanding Java 8 Optional: API Overview, Core Methods, and Practical Usage

This article explains the NullPointerException problem, shows traditional null‑checking code, introduces Java 8's Optional class with its constructors and key methods such as of, ofNullable, orElse, orElseGet, orElseThrow, map, flatMap, isPresent, ifPresent, and filter, and provides several real‑world examples illustrating how to replace verbose null checks with elegant Optional‑based code.

BackendFunctionalProgrammingjava
0 likes · 10 min read
Understanding Java 8 Optional: API Overview, Core Methods, and Practical Usage
Selected Java Interview Questions
Selected Java Interview Questions
Feb 12, 2023 · Backend Development

Comprehensive Guide to Java 8 Date and Time API

This article provides a thorough walkthrough of Java 8's date‑time API, covering formatting patterns, obtaining current dates and times, extracting components, creating specific dates, comparing dates, handling periodic events, timezone offsets, timestamps, custom parsing, common pitfalls, and thread‑safety considerations, all illustrated with clear code examples.

DateTimeFormatterTimeAPIdatetime
0 likes · 24 min read
Comprehensive Guide to Java 8 Date and Time API
Java Architect Essentials
Java Architect Essentials
Nov 2, 2022 · Backend Development

Using Java 8 Optional to Simplify Null‑Pointer Handling

This article introduces Java 8's Optional class, explains how to create Optional objects, demonstrates the most common methods such as get, isPresent, ifPresent, filter, map, flatMap, orElse, orElseGet, orElseThrow, compares similar APIs, provides real‑world service‑layer examples, and highlights JDK 9 enhancements, helping developers write safer, more readable code while avoiding NullPointerException.

FunctionalProgrammingjava8nullpointerexception
0 likes · 12 min read
Using Java 8 Optional to Simplify Null‑Pointer Handling
Top Architect
Top Architect
Oct 20, 2022 · Backend Development

Mastering Java Optional: Preventing NullPointerException with Java 8

This article explains how Java 8's Optional class can be used to avoid NullPointerException by providing a comprehensive guide that covers creation, common methods, practical use‑cases, and recent JDK 9 enhancements, complete with code examples and best‑practice recommendations.

BestPracticesFunctionalProgrammingjava
0 likes · 14 min read
Mastering Java Optional: Preventing NullPointerException with Java 8
Architect's Tech Stack
Architect's Tech Stack
Oct 12, 2022 · Fundamentals

Java 8 Functional Interfaces and Stream Operations: Concepts, Examples, and Advanced Collectors

This article introduces Java 8's functional interfaces and lambda expressions, explains immutable values and function composition, demonstrates common stream operations such as collect, filter, map, flatMap, max/min, count, and reduce, and shows how to use advanced collectors like groupingBy, partitioningBy, and joining with practical code examples.

CollectorsFunctional InterfaceLambda
0 likes · 17 min read
Java 8 Functional Interfaces and Stream Operations: Concepts, Examples, and Advanced Collectors
Top Architect
Top Architect
Sep 16, 2022 · Backend Development

Mastering Java 8 Optional to Eliminate NullPointerException

This article explains how Java 8's Optional class can be used to simplify null‑checking, avoid NullPointerException, and write more readable backend code by demonstrating its creation methods, common operations like get, isPresent, ifPresent, filter, map, flatMap, orElse, orElseGet, orElseThrow, and new JDK 9 enhancements with practical code examples.

javajava8nullpointerexception
0 likes · 14 min read
Mastering Java 8 Optional to Eliminate NullPointerException
Selected Java Interview Questions
Selected Java Interview Questions
Sep 11, 2022 · Backend Development

Refactoring Classic Design Patterns with Java 8 Lambdas

This article demonstrates how Java 8’s lambda expressions and functional interfaces can be used to refactor classic design‑pattern implementations—Strategy, Template Method, Observer, and Chain of Responsibility—into more concise, maintainable backend code, providing both traditional Java examples and their streamlined lambda equivalents.

Design PatternsLambdajava8
0 likes · 10 min read
Refactoring Classic Design Patterns with Java 8 Lambdas
Code Ape Tech Column
Code Ape Tech Column
Aug 19, 2022 · Backend Development

Refactoring Classic Design Patterns with Java 8 Features: Strategy, Template Method, Observer, and Chain of Responsibility

This article demonstrates how Java 8's lambda expressions and functional interfaces can simplify traditional implementations of the Strategy, Template Method, Observer, and Chain‑of‑Responsibility design patterns by reducing boilerplate code and consolidating multiple classes into concise functional constructs.

Chain of ResponsibilityObserverjava
0 likes · 11 min read
Refactoring Classic Design Patterns with Java 8 Features: Strategy, Template Method, Observer, and Chain of Responsibility
Top Architect
Top Architect
Aug 11, 2022 · Backend Development

18 Practical Java 8 Date/Time Handling Examples

This article presents 18 practical techniques for using Java 8’s new date‑time API, demonstrating how to obtain, manipulate, compare, format, and calculate dates and times with immutable, thread‑safe classes such as LocalDate, LocalTime, ZonedDateTime, and Instant, while providing full code examples for each use case.

TimeAPIdatetimejava
0 likes · 11 min read
18 Practical Java 8 Date/Time Handling Examples
Top Architect
Top Architect
Jun 11, 2022 · Backend Development

Using Java 8 Stream API for Data Processing with PO Objects

This article introduces Java 8's Stream API, explains its SQL‑like pipeline operations such as filter, map, sorted, forEach, collect, statistics and parallelStream, and demonstrates their usage on a UserPo class with comprehensive code examples for backend developers.

Stream APIfunctional programmingjava
0 likes · 9 min read
Using Java 8 Stream API for Data Processing with PO Objects
Java Architect Essentials
Java Architect Essentials
Apr 30, 2022 · Fundamentals

Understanding Java Optional: API Overview and Practical Usage

This article explains the NullPointerException problem, introduces the Java 8 Optional API—including constructors, of, ofNullable, empty, orElse, orElseGet, orElseThrow, map, flatMap, isPresent, ifPresent, and filter—provides source code snippets, and demonstrates how to replace verbose null‑checks with elegant Optional‑based implementations.

APIFunctionalProgrammingjava8
0 likes · 9 min read
Understanding Java Optional: API Overview and Practical Usage
Java Architect Essentials
Java Architect Essentials
Apr 22, 2022 · Backend Development

Master Java Optional: Clean Null Handling with Real Code Examples

This article explains the NullPointerException problem in Java, introduces the Optional API introduced in Java 8, details each method such as of, ofNullable, empty, orElse, orElseGet, orElseThrow, map, flatMap, filter, isPresent and ifPresent, and provides practical code examples that replace verbose null‑checks with concise, functional style.

functional programmingjavajava8
0 likes · 10 min read
Master Java Optional: Clean Null Handling with Real Code Examples
Top Architect
Top Architect
Feb 23, 2022 · Backend Development

Understanding CompletableFuture in Java 8: Implementation, Features, and Source‑Code Analysis

The article explains why CompletableFuture was introduced in JDK 1.8, describes its core features such as thenCompose, thenCombine, thenAccept, thenRun and thenApply, demonstrates usage with Netty's ChannelFuture and detailed source‑code walkthroughs including asyncSupplyStage, AsyncSupply, uniAcceptStage and postComplete, and provides practical code examples and execution results.

AsynchronousCompletableFuturejava
0 likes · 14 min read
Understanding CompletableFuture in Java 8: Implementation, Features, and Source‑Code Analysis
Java Architect Essentials
Java Architect Essentials
Feb 17, 2022 · Backend Development

Using Java 8 Optional to Eliminate NullPointerException: API Overview and Practical Examples

This article explains the frequent NullPointerException issue in Java, introduces the Optional class and its constructors and methods such as of, ofNullable, orElse, orElseGet, orElseThrow, map, flatMap, isPresent, ifPresent, and filter, and demonstrates how to replace verbose null‑checks with concise Optional‑based code through several real‑world examples.

functional programmingjava8nullpointerexception
0 likes · 10 min read
Using Java 8 Optional to Eliminate NullPointerException: API Overview and Practical Examples
Selected Java Interview Questions
Selected Java Interview Questions
Jan 14, 2022 · Backend Development

Understanding CompletableFuture in Java 8: Overview, Features, and Source‑Code Walkthrough

This article explains Java 8's CompletableFuture, covering its purpose, core features such as thenCompose, thenCombine, thenAccept, thenRun, and thenApply, demonstrates practical code examples, and provides a detailed analysis of the underlying source‑code implementation for asynchronous callbacks.

AsynchronousBackendCompletableFuture
0 likes · 11 min read
Understanding CompletableFuture in Java 8: Overview, Features, and Source‑Code Walkthrough
Java Backend Technology
Java Backend Technology
Dec 16, 2021 · Backend Development

Eliminate if…else Chaos in Java 8 with Functional Interfaces

Learn how to replace repetitive if…else statements in Java by leveraging Java 8’s functional interfaces—Supplier, Consumer, Runnable, and Function—through clear examples, custom interfaces, and utility methods that streamline exception handling, branch processing, and null checks for cleaner, more maintainable code.

Code RefactoringException HandlingFunctional Interface
0 likes · 6 min read
Eliminate if…else Chaos in Java 8 with Functional Interfaces
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.

CollectionsFunctionalProgrammingLambda
0 likes · 22 min read
Master Java 8 Streams: 20 Real‑World Examples to Boost Your Coding Efficiency
FunTester
FunTester
Nov 24, 2021 · Backend Development

Mastering Java Stream Collectors: Practical Examples and Code Walkthrough

This article provides a hands‑on guide to Java 8 Stream Collectors, demonstrating how to use toList, toSet, toCollection, toMap, summingInt, joining, groupingBy, partitioningBy and related collectors with clear code examples and output results.

BackendCollectorsDataAggregation
0 likes · 11 min read
Mastering Java Stream Collectors: Practical Examples and Code Walkthrough
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.

CollectionsLambdaStream API
0 likes · 15 min read
Simplifying Collection Processing with Java 8 Stream API
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 ExamplesCollectionsLambda
0 likes · 24 min read
Comprehensive Java 8 Stream API Guide with 20 Practical Examples
Java Architecture Diary
Java Architecture Diary
Jun 23, 2021 · Fundamentals

Why Java Needed a New Date‑Time API and How JSR‑310 Solves It

This article explains the shortcomings of the legacy java.util.Date and Calendar classes, outlines the motivations behind creating a new date‑time API, and introduces Java 8's JSR‑310 solution with its comprehensive class hierarchy, range handling, chronology support, and fluent method design.

APIJSR-310datetime
0 likes · 10 min read
Why Java Needed a New Date‑Time API and How JSR‑310 Solves It
Selected Java Interview Questions
Selected Java Interview Questions
May 25, 2021 · Fundamentals

Understanding and Leveraging Java Optional: Creation, Access, Default Values, Exceptions, Transformations, Filtering, and Java 9 Enhancements

This article provides a comprehensive guide to Java's Optional class, covering its purpose for avoiding NullPointerExceptions, how to create and access Optional instances, default‑value methods, exception handling, value transformation, filtering, method chaining, and new features introduced in Java 9.

Java9Streamfunctional programming
0 likes · 13 min read
Understanding and Leveraging Java Optional: Creation, Access, Default Values, Exceptions, Transformations, Filtering, and Java 9 Enhancements
Java Backend Technology
Java Backend Technology
May 6, 2021 · Backend Development

Master Java 8 Optional to Eliminate NullPointerExceptions

This article explains why NullPointerExceptions occur in Java, introduces the Optional API introduced in Java 8, details its core methods with source code examples, and demonstrates practical usage patterns that replace verbose null‑checks with concise, expressive functional code.

APIFunctionalProgrammingjava
0 likes · 9 min read
Master Java 8 Optional to Eliminate NullPointerExceptions
Architect's Tech Stack
Architect's Tech Stack
Apr 30, 2021 · Backend Development

Java 8 Date and Time API Tutorial with Practical Examples

This article introduces Java 8's new date‑time API, explains its immutable and thread‑safe design, lists the key classes such as Instant, LocalDate, LocalTime, ZonedDateTime, and provides step‑by‑step code examples for obtaining current dates, manipulating specific dates, handling time zones, calculating intervals, and formatting dates.

APIjavajava8
0 likes · 23 min read
Java 8 Date and Time API Tutorial with Practical Examples
Architect's Tech Stack
Architect's Tech Stack
Apr 28, 2021 · Backend Development

Java 8 Lambda Expressions, Functional Interfaces, and Stream API Tutorial

This article introduces Java 8's lambda expressions and functional interfaces, demonstrates custom functional interfaces, and explains how to use the Stream API with operations such as collect, filter, map, flatMap, max/min, count, reduce, partitioningBy, groupingBy, and joining, providing code examples throughout.

CollectorsFunctional InterfacesLambda
0 likes · 13 min read
Java 8 Lambda Expressions, Functional Interfaces, and Stream API Tutorial
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.

CollectionsFunctionalProgrammingMap.merge
0 likes · 6 min read
Using Java 8 Map.merge() to Aggregate Student Scores
Java Tech Enthusiast
Java Tech Enthusiast
Apr 12, 2021 · Backend Development

Java 8 Lambda Expressions, Stream API, and Optional Tutorial

Java 8 adds powerful functional constructs—lambda expressions, method and constructor references, the Stream API, and Optional—plus a modern, thread‑safe date‑time library, and this tutorial explains their syntax, core interfaces, common operations, and practical backend examples to improve code readability and conciseness.

LambdaStream APIdatetime
0 likes · 31 min read
Java 8 Lambda Expressions, Stream API, and Optional Tutorial
Top Architect
Top Architect
Apr 8, 2021 · Fundamentals

Java 8 Memory Structure Overview

This article explains the Java 8 memory architecture, detailing the differences between JVM-managed memory and native memory, describing each runtime data area such as the program counter, JVM stack, native method stack, heap, method area, and direct memory, and answering common questions about variable storage, native methods, literals and symbolic references.

Garbage CollectionRuntime Data Areajava8
0 likes · 13 min read
Java 8 Memory Structure Overview
Java Backend Technology
Java Backend Technology
Feb 24, 2021 · Fundamentals

Mastering Java 8 Date & Time API: Practical Examples and Code Snippets

This article introduces Java 8's modern date‑time API, explains why the old java.util.Date and SimpleDateFormat are problematic, and provides a series of concise, runnable examples that demonstrate how to obtain the current date, extract year/month/day, work with specific dates, compare dates, handle time zones, calculate periods, format and parse strings, and more.

APIdatetimeexamples
0 likes · 15 min read
Mastering Java 8 Date & Time API: Practical Examples and Code Snippets
360 Quality & Efficiency
360 Quality & Efficiency
Dec 18, 2020 · Fundamentals

Understanding Java Lambda Expressions and Functional Interfaces: Syntax, Features, and Bytecode Analysis

This article explains Java lambda expressions and functional interfaces, covering their concise syntax, optional features, practical code examples, how they differ from anonymous classes, the role of @FunctionalInterface, built‑in JDK functional interfaces, and a detailed bytecode analysis of the generated lambda methods.

Functional InterfaceLambdabytecode
0 likes · 9 min read
Understanding Java Lambda Expressions and Functional Interfaces: Syntax, Features, and Bytecode Analysis
JavaEdge
JavaEdge
Nov 22, 2020 · Fundamentals

Why Java’s Legacy Date API Fails and How Java 8 Solves Time‑Zone Chaos

The article examines the shortcomings of Java’s pre‑Java 8 date‑time classes—Date, Calendar, and SimpleDateFormat—highlighting their thread‑unsafe, confusing APIs and time‑zone pitfalls, then demonstrates how Java 8’s new date‑time API (LocalDateTime, ZonedDateTime, ZoneId, DateTimeFormatter) provides clear, thread‑safe handling and proper internationalization.

Timezonedatetimejava
0 likes · 9 min read
Why Java’s Legacy Date API Fails and How Java 8 Solves Time‑Zone Chaos
Selected Java Interview Questions
Selected Java Interview Questions
Oct 30, 2020 · Fundamentals

Java 8 Date and Time API Tutorial with Practical Code Examples

This article introduces Java 8's new date‑time API, explains why it replaces the mutable java.util.Date and non‑thread‑safe SimpleDateFormat, and provides a series of clear code examples demonstrating how to obtain current dates, manipulate specific dates, compare dates, handle time zones, work with periods, and format dates using the modern java.time classes.

APICodeExamplesTutorial
0 likes · 19 min read
Java 8 Date and Time API Tutorial with Practical Code Examples
Java Captain
Java Captain
Aug 24, 2020 · Backend Development

Java 8 Stream API: Grouping, Mapping, Filtering, Summing and Other Collection Operations

This article demonstrates how to leverage Java 8 Stream API to perform common collection operations such as defining a data class, creating test data, grouping by fields, converting lists to maps, filtering, summing numeric fields, finding max/min values, removing duplicates, and explains the Collectors utility methods.

Collectiondata-processingjava8
0 likes · 9 min read
Java 8 Stream API: Grouping, Mapping, Filtering, Summing and Other Collection Operations
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
Top Architect
Top Architect
Jul 30, 2020 · Backend Development

Using Java 8 Optional to Eliminate Null Checks and Simplify Code

This article explains the Java 8 Optional class, demonstrates how it replaces traditional null‑checking with functional methods such as of, ofNullable, map, orElse, filter, and provides best‑practice guidelines for creating and using Optional objects to write cleaner backend code.

Backendfunctional programmingjava
0 likes · 9 min read
Using Java 8 Optional to Eliminate Null Checks and Simplify Code
Top Architect
Top Architect
Jul 18, 2020 · Backend Development

Java Streams: Comparing Collection Processing in Java 7 and Java 8

This article demonstrates how Java 8 streams simplify collection processing compared to Java 7 by showing code examples that filter, sort, map, and reduce dishes, explains stream concepts, intermediate and terminal operations, and provides practical usage tips for parallel processing and common stream methods.

Collection Processingfunctional programmingjava
0 likes · 12 min read
Java Streams: Comparing Collection Processing in Java 7 and Java 8
Top Architect
Top Architect
Jul 6, 2020 · Backend Development

10 Java One‑Liners Using Lambda, Stream, and Try‑with‑Resources

This article presents ten independent Java 8 one‑liner examples that demonstrate how to perform common tasks such as mapping, summing, string matching, file reading, conditional output, grouping, XML parsing, min/max calculations, parallel processing, and LINQ‑style queries using Lambda, Stream, try‑with‑resources and related APIs.

LambdaOne-linerStream
0 likes · 7 min read
10 Java One‑Liners Using Lambda, Stream, and Try‑with‑Resources
Programmer DD
Programmer DD
Jul 3, 2020 · Backend Development

10 Powerful Java One‑Liners to Simplify Your Code

This article showcases ten concise Java one‑liners that use Java 8 features such as Lambda, Stream, try‑with‑resources, and JAXB to perform common tasks like mapping, summing, filtering, file I/O, XML parsing, and parallel processing without any additional code.

LambdaOne-linersStreams
0 likes · 6 min read
10 Powerful Java One‑Liners to Simplify Your Code
Selected Java Interview Questions
Selected Java Interview Questions
Mar 25, 2020 · Backend Development

Comprehensive Guide to Java HashMap: Structure, Operations, Concurrency Issues, and Interview Insights

This article provides an in‑depth explanation of Java's HashMap, covering its array‑plus‑linked‑list (and tree) structure, default capacity and load factor, constructors, put/get workflows, concurrency pitfalls, differences between Java 7 and 8, and key points to ace interview questions.

Data StructureHashMapJava7
0 likes · 8 min read
Comprehensive Guide to Java HashMap: Structure, Operations, Concurrency Issues, and Interview Insights
Java Captain
Java Captain
Mar 14, 2020 · Fundamentals

Design of the Java Platform Time System

This article explains the design of Java's time system, covering the epoch start, offset representation, timezone handling, historical changes, and the modern Java 8 date‑time API with practical code examples and usage guidelines.

APITimezonedatetime
0 likes · 26 min read
Design of the Java Platform Time System
Java Captain
Java Captain
Jan 16, 2020 · Fundamentals

Java 8 Date and Time API: Practical Examples and Usage

This tutorial demonstrates how Java 8's new immutable, thread‑safe date‑time API (java.time) can be used to obtain the current date, extract year/month/day, create specific dates, compare dates, handle time zones, format and parse strings, and perform common date‑time calculations with clear code examples.

APIdatetimejava
0 likes · 14 min read
Java 8 Date and Time API: Practical Examples and Usage
Programmer DD
Programmer DD
Nov 24, 2019 · Backend Development

Master Java 8 Date & Time API: Thread‑Safe LocalDate, LocalTime, and LocalDateTime

This article explains why the legacy Date and SimpleDateFormat classes are problematic, introduces Java 8's immutable LocalDate, LocalTime, LocalDateTime and Instant classes, demonstrates thread‑safe creation, formatting, parsing, modification and calculation, and shows practical SpringBoot integration examples.

APISpringBootThreadSafety
0 likes · 10 min read
Master Java 8 Date & Time API: Thread‑Safe LocalDate, LocalTime, and LocalDateTime
Programmer DD
Programmer DD
Nov 23, 2019 · Backend Development

Mastering Java Lambda: From Runnable to UnaryOperator Explained

This article explains how Java lambda expressions work by showing thread creation, collection sorting, and the underlying functional interfaces such as Runnable, Comparator, Function, and UnaryOperator, while clarifying the role of the @FunctionalInterface annotation and the compiler’s automatic detection of functional interfaces.

FunctionalInterfaceLambdaUnaryOperator
0 likes · 13 min read
Mastering Java Lambda: From Runnable to UnaryOperator Explained
Sohu Tech Products
Sohu Tech Products
Nov 13, 2019 · Backend Development

Understanding Date and Time Handling in Java: From System.currentTimeMillis to Java 8 Date/Time API

This article explains the physical and philosophical notions of time, the challenges of representing time in computing, and provides a comprehensive guide to Java's date‑time APIs—including System.currentTimeMillis, System.nanoTime, java.util.Date, java.sql.Timestamp, Calendar, SimpleDateFormat, and the modern Java 8 classes such as Instant, LocalDate/Time, ZonedDateTime, and DateTimeFormatter—while highlighting common pitfalls and best practices.

Timezonedatetimejava8
0 likes · 23 min read
Understanding Date and Time Handling in Java: From System.currentTimeMillis to Java 8 Date/Time API
Programmer DD
Programmer DD
Oct 31, 2019 · Backend Development

Master Java 8 Date & Time API: From LocalDate to ZonedDateTime

This article introduces Java 8's new date‑time API, explains the shortcomings of the old java.util.Date classes, and provides practical examples for using Instant, LocalDate, LocalTime, LocalDateTime, ZonedDateTime, Duration, Period and DateTimeFormatter in real projects.

APITutorialdatetime
0 likes · 11 min read
Master Java 8 Date & Time API: From LocalDate to ZonedDateTime
Senior Brother's Insights
Senior Brother's Insights
Oct 13, 2019 · Fundamentals

Master Java 8 Lambda Expressions: From Anonymous Classes to Functional Interfaces

This guide explains Java 8’s Lambda expressions, covering their purpose, syntax, functional interfaces, method references, and practical examples such as thread creation, event handling, collection processing, and Stream API usage, while comparing them to traditional anonymous classes and highlighting compilation differences.

Functional InterfaceLambdaMethod Reference
0 likes · 13 min read
Master Java 8 Lambda Expressions: From Anonymous Classes to Functional Interfaces
vivo Internet Technology
vivo Internet Technology
Sep 11, 2019 · Backend Development

Parallel Stream Class Loading Failure Analysis in Tomcat Containers

The article explains how Java 8 parallel streams in Tomcat containers trigger class‑loading failures because ForkJoinWorkerThreads inherit a null context class loader after Tomcat 7.0.74 introduced SafeForkJoinWorkerThreadFactory, leading to deserialization errors and memory‑leak risks, and recommends avoiding dynamic class loading or using custom thread pools.

DubboForkJoinPoolHessian
0 likes · 8 min read
Parallel Stream Class Loading Failure Analysis in Tomcat Containers
Big Data Technology & Architecture
Big Data Technology & Architecture
Feb 15, 2019 · Backend Development

Deep Dive into Java 8 ConcurrentHashMap: Initialization, Treeification, Resizing, and Transfer Mechanics

This article explains the inner workings of Java 8's ConcurrentHashMap, covering how the table is initialized, how linked‑list bins are converted to red‑black trees, the resizing logic with tryPresize, and the multi‑threaded transfer process that moves entries to a larger table.

ConcurrentHashMapData Structuresconcurrency
0 likes · 17 min read
Deep Dive into Java 8 ConcurrentHashMap: Initialization, Treeification, Resizing, and Transfer Mechanics
Big Data Technology & Architecture
Big Data Technology & Architecture
Feb 15, 2019 · Fundamentals

Understanding Java 8 HashMap and ConcurrentHashMap Internals

This article provides an in‑depth tutorial on Java 8’s HashMap and ConcurrentHashMap implementations, explaining their internal structures, red‑black tree conversion, resizing mechanisms, and step‑by‑step code analysis of put, get, and initialization processes, essential for interview preparation.

ConcurrentHashMapData StructuresHashMap
0 likes · 13 min read
Understanding Java 8 HashMap and ConcurrentHashMap Internals
Programmer DD
Programmer DD
Aug 8, 2018 · Fundamentals

Unlocking Java Lambdas: How Functional Interfaces Power Modern Code

This article explores Java 8 lambda expressions, demonstrating their syntax, how they map to functional interfaces like Runnable and Comparator, the role of the @FunctionalInterface annotation, and the practical use of UnaryOperator and Function interfaces in everyday code.

FunctionalInterfaceFunctionalProgrammingLambda
0 likes · 14 min read
Unlocking Java Lambdas: How Functional Interfaces Power Modern Code
Java Captain
Java Captain
Jun 25, 2018 · Fundamentals

10 Java One‑Liners Using Lambda and Stream for Common Tasks

This article presents ten concise Java 8 one‑liners that leverage lambda expressions, streams, try‑with‑resources, and other modern features to perform common operations such as mapping, summing, filtering, file I/O, XML parsing, min/max calculations, parallel processing, and LINQ‑style queries in a single line of code.

LambdaOne-linerjava
0 likes · 6 min read
10 Java One‑Liners Using Lambda and Stream for Common Tasks
Baidu Tech Salon
Baidu Tech Salon
May 5, 2014 · Fundamentals

10 Must‑Know Java 8 Features That Transform Your Code

Java 8 introduced a suite of powerful enhancements—from default methods and the new Process API to StampedLock, improved concurrency utilities, Optional, flexible annotations, numeric overflow checks, enhanced file traversal, stronger SecureRandom, and Date.toInstant—each offering developers modern, efficient ways to write cleaner, safer code.

APIsconcurrencyjava
0 likes · 8 min read
10 Must‑Know Java 8 Features That Transform Your Code