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
На этой странице сайта вы можете посмотреть видео онлайн Java 8 Functional Interfaces Tutorial with Examples длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Java Guides 07 Март 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 5,239 раз и оно понравилось 67 зрителям. Приятного просмотра!