First of all, you should understand that references to constructors are just a special form of method references. The point in reference methods is that they do not call the reference method, but provide a way to determine the function that will call the method during evaluation.
Examples of related articles may not seem so useful, but this is a common problem with a short stand-alone code example. This is exactly the same as with the hello world program. This is no more useful than typing "hello world" directly into the console, but that doesn’t mean that anyway. Its purpose is to demonstrate a programming language.
As assylias has shown , there are options for using an existing functional interfaceusing the JFC API.
, , () interface : .
interface , - , new SomeType(…).
, Factory, interface , Factory - .
- , , - . , interface , .