Hello Everyone,
In this video we'll see what are functional interfaces and also see few built in functional interfaces provided in Java 8. This session is mainly theory and in upcoming session we'll work on the examples of all the discussed Functional Interface.
0:00 Introduction
0:40 What is a Functional Interface?
1:46 @FunctionalInterface Annotation
2:26 Why do we need Lambda Expressions for Functional Interfaces?
3:09 Legacy Functional Interfaces in Java
3:38 List of Important Built in Functional Interfaces in Java 8
3:56 Function Functional Interface
4:28 Predicate Functional Interface
4:42 UnaryOperator Functional Interface
5:18 BinaryOperator Functional Interface
5:50 Supplier Functional Interface
6:08 Consumer Functional Interface
Java interview questions and answers
To check out more on the tutorials Topic wise you can follow below links
Links:
Please do checkout other tutorial videos also if required:
Java 8 Features: • Java 8
Core Java Complete Tutorial: • Core Java Complete Guide
Interview Preparation for Java: • Interview Preparation Java
Python: • Python
Linux: • Linux
Please do LIKE, Share and SUBSCRIBE
Thank You
Functional interfaces are included in Java SE 8 with Lambda expressions and Method references in order to make code more readable, clean, and straightforward. Functional interfaces are interfaces that ensure that they include precisely only one abstract method. Functional interfaces are used and executed by representing the interface with an annotation called @FunctionalInterface. As described earlier, functional interfaces can contain only one abstract method. However, they can include any quantity of default and static methods.
In Functional interfaces, there is no need to use the abstract keyword as it is optional to use the abstract keyword because, by default, the method defined inside the interface is abstract only. We can also call Lambda expressions as the instance of functional interface.
Before Java 8, we had to create anonymous inner class objects or implement these interfaces.
#java8 #streamapi #stream #interview #multithreadinginjava #hashmap #hashtable #interview #jdbc #java #db #treeset #collectionframework #binarysearchtree #linkedlist #list #arraylist #fibonacci #java #fastest #gc #heap #java #stack #jvm #architecture #exception #interview #exam #interface #abstraction #coding #methodoverloading #methodoverriding #runtime #compiletime #polymorphism #inheritance #constructors #objects #static #eclipse #developer #installation #download #awesome #youtube #youtuber #youtubers #subscribe #youtubevideos #sub #youtubevideo #like #identifiers #operators #variables #typesofvariables #innerclasses #static
On this page of the site you can watch the video online #8 - Java 8 - Functional Interfaces Theory Java 8 with a duration of hours minute second in good quality, which was uploaded by the user Lazy Programmer 09 September 2022, share the link with friends and acquaintances, this video has already been watched 391 times on youtube and it was liked by 16 viewers. Enjoy your viewing!