Default Methods


Idioms and Techniques

Design Rationale

Advanced Questions

What are constructor references?

In the same way that method references are handles to existing methods, constructor reference are handles to existing constructors. Constructor references are created using syntax similar to that for method references, but with the method name replaced with the keyword new. For example:

ArrayList::new File::new

If the constructor is generic, type arguments can be explicitly […]