Tag

MethodReference

0 views collected around this technical thread.

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.

BackendFunctionalInterfaceJava
0 likes · 8 min read
Understanding Java Method References, Optional, and Static Factory Methods
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.

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