Tagged articles

Method References

8 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Sep 29, 2026 · Backend Development

Java Method References: Four Patterns, Readability Tips, and Compiler Resolution Explained

This article explains the four types of Java method references (static, bound instance, arbitrary instance, constructor), their equivalent lambdas, compiler overload resolution, readability trade-offs, and practical examples showing when method references improve clarity versus when lambdas remain preferable.

Best PracticesCode ReadabilityCompiler Overload Resolution
0 likes · 21 min read
Java Method References: Four Patterns, Readability Tips, and Compiler Resolution Explained
LuTiao Programming
LuTiao Programming
Sep 13, 2026 · Backend Development

Spring Data 4.1: Type-Safe Property Paths Turn String Sorting into Compile-Time Checks

Spring Data 4.1 introduces type-safe property paths using method references like Sort.by(Order::getCreatedAt) and TypedPropertyPath for nested fields, replacing error-prone string-based sorting with compile-time checks and IDE refactoring support across JPA, JDBC, MongoDB, and other Spring Data modules.

Compile-time ChecksJPAMethod References
0 likes · 13 min read
Spring Data 4.1: Type-Safe Property Paths Turn String Sorting into Compile-Time Checks
Architect's Must-Have
Architect's Must-Have
Nov 2, 2025 · Fundamentals

Master Java Lambda Expressions: From Basics to Advanced Usage

This article explains what Java lambda expressions are, why they were introduced, their syntax and classifications, functional interfaces, core functional interfaces, method references, and provides multiple code examples that progressively simplify traditional anonymous inner classes into concise lambda forms.

Functional InterfacesJavaLambda Expressions
0 likes · 15 min read
Master Java Lambda Expressions: From Basics to Advanced Usage
Top Architect
Top Architect
Sep 7, 2021 · Fundamentals

Understanding Java Method References and Optional: A Practical Guide

This article explains Java method references—including static, instance, and constructor forms—and the Optional class, showing how they simplify functional programming with clear code examples, usage patterns, and best‑practice tips for handling nullable values.

Functional InterfaceJavaMethod References
0 likes · 8 min read
Understanding Java Method References and Optional: A Practical Guide
Programmer DD
Programmer DD
Dec 15, 2020 · Fundamentals

Master Java Method References: Simplify Lambdas for Cleaner Code

This article explains Java's method reference feature, covering its four types, practical code examples for static methods, instance methods, constructors, and highlighting limitations compared to lambda expressions, helping developers write more readable and concise Java 8 code.

JavaJava 8Method References
0 likes · 7 min read
Master Java Method References: Simplify Lambdas for Cleaner Code
Top Architect
Top Architect
Sep 20, 2020 · Fundamentals

Java 8 Method References and Optional: Concise Coding with Functional Interfaces

This article introduces Java 8's method reference syntax and the Optional class, explaining static, instance, and constructor references, demonstrating their use with functional interfaces such as Function and BiFunction, and providing practical code examples to write more concise and null‑safe Java code.

Functional InterfacesJavaJava 8
0 likes · 8 min read
Java 8 Method References and Optional: Concise Coding with Functional Interfaces
Programmer DD
Programmer DD
Sep 17, 2020 · Fundamentals

Master Java 8 Method References and Optional: A Practical Guide

This article explains Java 8's method reference syntax—including static, instance, and constructor references—shows how to assign them to functional interfaces, introduces the Optional class for null‑safe programming, and demonstrates the static‑factory‑method (of) pattern with clear code examples.

Functional InterfacesJava 8Method References
0 likes · 8 min read
Master Java 8 Method References and Optional: A Practical Guide
Programmer DD
Programmer DD
Sep 7, 2020 · Fundamentals

Master Java Method References: Simplify Lambdas with Clean Code

This article explains Java method references, shows how they simplify lambda expressions with practical code examples, outlines reference formats, discusses readability benefits, and provides guidance for adopting this Java 8 feature in everyday programming.

Code SimplificationLambda ExpressionsMethod References
0 likes · 6 min read
Master Java Method References: Simplify Lambdas with Clean Code