Fundamentals

Default Methods

Collections

Idioms and Techniques

Design Rationale

Advanced Questions

What are default methods?

The page Why are lambda expressions being added to Java? uses as an example the simple collections method forEach, which takes a function and applies it to every element, for example:

pointList.forEach(p -> p.move(p.y, p.x));

But the classes of the Java Collections Framework, having been designed fifteen years ago for a language without a functional […]