Campbell Ritchie wrote:If you simply ask which of those lines of code will compile,
Supplier<String> sup = String::new;
...will compile too. There must be more to it than that.
What do you mean? The question is "Which functional interfaces complete the following code? (Choose all that apply)". The answer should be: A, F, G, as well as E, since Consumer<String> can also complete the first line.