A

Admin • 828.03K Points
Coach

Q. Which of the following is not a functional interface in Java 8?

  • (A) Consumer
  • (B) Supplier
  • (C) Runnable
  • (D) Comparator
  • Correct Answer - Option(D)
  • Views: 10
  • Filed under category Java
  • Hashtags:

Explanation by: Admin
Although it is often used with functional programming constructs such as lambda expressions, Comparator is not a functional interface because it has two abstract methods.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.