Tagged articles
4 articles
Page 1 of 1
Programmer DD
Programmer DD
Sep 19, 2021 · Fundamentals

Master Java Method References and Optional: A Practical Guide

This article explains Java method references, static and instance forms, constructor references, and the Optional class with code examples, showing how to write concise, null‑safe functional code using Java 8 features.

FunctionalInterfaceLambdaMethodReference
0 likes · 8 min read
Master Java Method References and Optional: A Practical Guide
Java Architect Essentials
Java Architect Essentials
Sep 2, 2021 · Backend Development

Understanding Java Method References, Optional, and Static Factory Methods

This article explains Java's method reference syntax, including static, instance, and constructor references, demonstrates their use with functional interfaces, introduces the Optional class for handling nullable values, and shows how static factory methods like of() can replace constructors, providing practical code examples throughout.

BackendFunctionalInterfaceMethodReference
0 likes · 8 min read
Understanding Java Method References, Optional, and Static Factory Methods
Java Backend Technology
Java Backend Technology
Aug 22, 2020 · Backend Development

Master Java Method References and Optional: A Practical Guide

This article explains Java’s method reference syntax—including static, instance, and constructor references—demonstrates how to assign them to functional interfaces, explores the Optional class and its common methods, and shows how static factory methods like of replace constructors, all with clear code examples.

FactoryMethodFunctionalInterfaceLambda
0 likes · 9 min read
Master Java Method References and Optional: A Practical Guide
Architect's Tech Stack
Architect's Tech Stack
Jun 5, 2020 · Fundamentals

Introduction to Java Lambda Expressions and Common Usage Examples

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

CollectionsFunctionalInterfaceLambda
0 likes · 13 min read
Introduction to Java Lambda Expressions and Common Usage Examples