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  Why do we use methods 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  Koşullu Geçer ile mezun olunur mu?

Leave a Reply

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