A

Admin • 828.03K Points
Coach

Q. Which functional interface is most suitable for `System.out::println`?

  • (A) Supplier<String>
  • (B) Consumer<String>
  • (C) Predicate<String>
  • (D) Function<String, Void>

Explanation by: Admin
`System.out::println` takes an input and returns nothing, matching `Consumer`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.