Skip to content

Glossary: Java Beyond the Basics

Method reference

Also written: method references, constructor reference

A short form of a lambda, such as Product::name for p -> p.name(), or TreeMap::new for a constructor.

Where the book teaches it

Related terms

LambdaComparator