A

Admin • 831.35K Points
Coach

Q. Which functional interface method returns void?

  • (A) Supplier.get()
  • (B) Function.apply()
  • (C) Consumer.accept()
  • (D) Predicate.test()

Explanation by: Admin
`Consumer.accept()` consumes input and returns nothing (void).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.