Which of the following is an example of functional interface in Java 8?

From Java 8 onwards, lambda expressions can be used to represent the instance of a functional interface. A functional interface can have any number of default methods. Runnable, ActionListener, Comparable are some of the examples of functional interfaces.

Sizin İçin Seçtik  What is a functional method in Java?

Leave a Reply

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

Which of the following is an example of functional interface in Java 8?

From Java 8 onwards, lambda expressions can be used to represent the instance of a functional interface. A functional interface can have any number of default methods. Runnable, ActionListener, Comparable are some of the examples of functional interfaces.

Sizin İçin Seçtik  What is method in class in Java?

Leave a Reply

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