In this video tutorial, we will learn:
1. What is a functional interface?
2. How to create our own custom functional interface?
3. Predicate functional interface with example.
4. Supplier functional interface with example
5. Consumer functional interface with example.
Key points about the functional interface:
1. An Interface that contains exactly one abstract method is known as a functional interface.
2. It can have any number of default, static methods but can contain only one abstract method. It can also declare methods of the object class.
3. Functional Interface is also known as Single Abstract Method Interfaces or SAM Interfaces. It is a new feature in Java 8, which helps to achieve a functional programming approach.
4. A functional interface can extend another interface only when it does not have any abstract method.
5. The Java API has many one-method interfaces such as Runnable, Callable, Comparator, ActionListener, and others. They can be implemented and instantiated using anonymous class syntax.
Get the source code of this tutorial from my website at https://www.javaguides.net/2018/07/ja....
#javaguides #java8 #lambda
Java Guides Website : https://www.javaguides.net/
About me : https://www.javaguides.net/p/about-me...
Subscribe to our YouTube channel at / javaguides
Java 8 Tutorials - • Java 8 Tutorials
Spring Boot Tutorials - • Spring Boot Tutorial
Java Tutorials - • Java Tutorials
Java Best Practices - • Java Best Practices
Design Patterns in Java - • Design Patterns in Java
Servlet JSP Tutorials - • Servlet JSP Tutorials
Spring MVC Tutorials - • Spring MVC Tutorial
Hibernate 5 Tutorials - • Hibernate 5 Tutorial
MongoDB Tutorials - • MongoDB Tutorial
Nesta página do site você pode assistir ao vídeo on-line Java 8 Functional Interfaces Tutorial with Examples duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Java Guides 07 Março 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 5,239 vezes e gostou 67 espectadores. Boa visualização!