A

Admin • 828.03K Points
Coach

Q. Which functional interface matches with `String::new` when used with a Supplier?

  • (A) Supplier<String>
  • (B) Function<Integer, String>
  • (C) Consumer<String>
  • (D) Runnable

Explanation by: Admin
`Supplier<String>` matches a constructor reference that takes no arguments.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.