Fundamentals

Default Methods

Collections

Idioms and Techniques

Design Rationale

Advanced Questions

Why are static methods split between the Collector interface and the Collectors class?

In Java 8 it’s possible to put static methods on interfaces. Why aren’t all of the Collector-related static methods on the Collector interface? Isn’t the old pattern of interface X and class Xs (such as Collection/Collections or Path/Paths) obsolete?

Static methods on interfaces are indeed a new tool in the toolbox. That means older tools […]