Which of the following functional interfaces in Java utilizes Lambda expressions?

  • AbstractClass
  • FunctionalInterface
  • Runnable
  • Serializable
The Runnable interface in Java can be implemented using lambda expressions. It's a functional interface with a single abstract method run(). This allows you to use lambda expressions for tasks that can be executed concurrently. Lambda expressions simplify the creation of anonymous classes for such tasks.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *