Java 8 Tutorial 08 :- Function Interface in Java | Predefined Functional Interfaces

Опубликовано: 29 Октябрь 2020
на канале: Tech Freak
1,012
20

#Java8 #Java8Tutorials

In Java 8, Function is a functional interface. It takes an argument (object of type T) and returns an object (object of type R).
The Function Interface is a part of the java.util.function package.

As per documentation :-

@FunctionalInterface
public interface Function
Represents a function that accepts one argument and produces a result.
This is a functional interface whose functional method is apply(Object).

The functional method is apply :-
R apply(T t)

T: denotes the type of the input argument
R: denotes the return type of the function

Related Videos:-
Lambda Expression in Detail :-
   • Java 8 Tutorial 04 :- Lambda Expression in...  

How to Write Lambda Expression in Java 8 :-
   • Java 8 Tutorial 01 :-  How to Write Lambda...  

Website: http://liferayiseasy.blogspot.in/Face...   / google   + : https://plus.google.com/u/0/collectio...   / adit2787  

About:-Welcome on Tech Freak .Here you find tutorials on various Technologies like Liferay 6.2 , Liferay 7(DXP) , JUnit ,Java 8 etc.

Please SUBSCRIBE to Tech Freak, Thanks.


На этой странице сайта вы можете посмотреть видео онлайн Java 8 Tutorial 08 :- Function Interface in Java | Predefined Functional Interfaces длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Tech Freak 29 Октябрь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,012 раз и оно понравилось 20 зрителям. Приятного просмотра!