Functional Interfaces in Java

  Рет қаралды 3,624

Byte Programming

Byte Programming

Күн бұрын

Пікірлер: 6
@yoshitamahajan353
@yoshitamahajan353 4 жыл бұрын
Can u please tell why java is pass by value and not pass by reference ?
@ingoba07
@ingoba07 4 жыл бұрын
In the ppt, you said Interface with single abstract method, default method and static method are not functional interface. I think this needs to be corrected?
@AJ-fb9pk
@AJ-fb9pk 2 жыл бұрын
It is a wrong statement ofcourse, that is a myth that he mentioned. MYTH implies something that is believed by people to be true but actually is false.
@mrkachary
@mrkachary 4 жыл бұрын
Pretty confusing. I understand your argument of Functional Interface were there earlier too and now have been coined. This is because of streams and lambda usage. I understand that the concept is borrowed from scala. This leads to confusion that what makes Java 8 more popular. Is it just perception of usage or anything related to new. Please explain
@ByteProgrammingVedantHarish
@ByteProgrammingVedantHarish 4 жыл бұрын
Let me try like this : 1. We have Runnable, Comparable, Comparator interface. They are functional interface. They are before Java 8 also. So, as you also pointed, Functional interface concepts and usage was before Java 8 also. So, saying Functional interface is introduced in Java 8 is contradictory. 2. What makes Java 8 more popular -> Lambda and Stream. Lambda has changed the way of writing code. Example : Try writing a comparator with lambda in Java 8 and try same with Java 7. 3. With Java 8, we have lambda and new interfaces like Predicate, Supplier. They are also functional interface. And these supports stream and helps you to achieve functional programming.
@tulasiramsunkara
@tulasiramsunkara 3 жыл бұрын
@Byte Programming : I believe Comparable is not a Functional Interface.
Exception Handling in Java : What is Exception? How Exception is Handled
3:44
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 791 М.
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
УНО Реверс в Амонг Ас : игра на выбывание
0:19
Фани Хани
Рет қаралды 1,3 МЛН
The Lost World: Living Room Edition
0:46
Daniel LaBelle
Рет қаралды 27 МЛН
Collection Concepts & Interview Questions (Part-1)
20:59
Byte Programming
Рет қаралды 16 М.
Config Server | Microservices Architecture
18:01
Byte Programming
Рет қаралды 7 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 512 М.
HashMap Interview Questions | Interview Preparation
14:38
Byte Programming
Рет қаралды 8 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1,1 МЛН
Better Java Streams with Gatherers - JEP Cafe #23
1:13:32
Rest Interview Questions/Interview Preparation
13:54
Byte Programming
Рет қаралды 28 М.
Zig For the Uninitiated: Zig Interfaces
11:56
Tyler Calder
Рет қаралды 3,4 М.
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН