17.15 Java 8 Stream Api Features part 13 Function BinaryOperator BiFunction Interface Lambda

preview_player
Показать описание

a functional interface which can be used as the assignment target for a lambda

expression or method reference. It represent an operation upon two operands of the

same type, producing a result of the same type as the operands. A Java lambda

expression is a function which can be created without belonging to any class. A

lambda expression can be passed around as if it was an object and executed on

demand.

Follow on Facebook:

Subscribe to our other channel:
Telusko Hindi :
Рекомендации по теме
Комментарии
Автор

Your way of explaining is unbeatable sir, I wanted to learn java8, the first person was in mind was you :) Keep helping us thank you and God bless you sir

omkomal
Автор

Man that was some optimisation ... with "why to write this" ..."why to write this" and so on .. Nice feature :)

sarthakjoshi
Автор

Great video, also this can even be simplify using method reference like this:
-> i * 2).reduce(0, Integer::sum));

ahmadoudiop
Автор

Whenever you are referring to any of your previous videos as pre-requisite, i think it's better to provide a link in the video description for the same.

TheBatterHalf
Автор

Many of the JAvaScript concept, Java 8 Adopted

PianoNumberOne
Автор

How do we know the initial parameter must be 0 in the reduce method?

tugcehilal
Автор

Another way to do the same thing -

System.out.println(list.stream().reduce(0, (i, j) -> {
int y = j;
y = y * 2;
return y + i;
}));

adityakakliya
Автор

Can anybody know where is the source code of it ?

harshverm
Автор

why to write the last line? just calculate it in your head lmao

thelasttimeitookashowerwas
visit shbcf.ru