Тёмный

What & Why do we need Lambda Expressions in Java? | Tech Primers 

Tech Primers
Подписаться 135 тыс.
Просмотров 57 тыс.
50% 1

This video covers why do we need Lambda Expressions in Java.
Slack Community: techprimers.sl...
Twitter: / techprimers
Facebook: TechPrimers
GitHub: github.com/Tec... or techprimers.gi...
Video Editing: iMovie
Background Music: Broke For Free - Day Bird
Joakim Karud
The Passion HiFi - What We Came To Do

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 51   
@vikaswaskale2048
@vikaswaskale2048 5 лет назад
you said, lambda is easy to understand as compare to previous code but for me its not clearly understandable
@personxyz1840
@personxyz1840 3 года назад
haha, true. I was discouraged by many people VPs, CTO while reviewing code and keep asking me to get rid of my stream apis and use simple for loop. I still use streams when required.
@Cxl1302
@Cxl1302 2 месяца назад
It is hard at first, specially if you are used to work with imperative progamming
@kmdee6
@kmdee6 6 лет назад
class interface.. You had me there mate.
@raghavasreenivasulu8072
@raghavasreenivasulu8072 3 года назад
Bro I Thought you will give more theoretical information but. you are just executing program .
@DattatrayaTembare
@DattatrayaTembare 3 года назад
Thanks! for putting all this information together. Short but sweet videos with all necessary information. This lambda video should be in the top of the list before streams.
@vish32199
@vish32199 4 года назад
i learned new way of creating interface today like class interface...lol😂😂😂😂🤪
@vk-p
@vk-p 7 лет назад
Well u have taken wrong example for list of players..no need to use for each loop...2) lamda is not only syntactic sugar.. mean lambda is not only to code beautification
@TechPrimers
@TechPrimers 7 лет назад
yes vivek. just got carried away with the cricket players. :)
@phaneendram458
@phaneendram458 4 года назад
Hi bro u didn't told about Y we need lambdas. Please tell.
@amandamate9117
@amandamate9117 3 года назад
god why I am not surprised, that a java explanation video is made by a indian :D
@neshant89
@neshant89 6 лет назад
Hi Tech primers how do I become part of slack channel group ?
@TechPrimers
@TechPrimers 6 лет назад
Drop me a mail to techprimerschannel@gmail.com I will send the invite
@krishnasumanth007
@krishnasumanth007 5 лет назад
How about the performance? Does lambda improve the performance ?
@TechPrimers
@TechPrimers 5 лет назад
Nope. NOt necessarily.
@personxyz1840
@personxyz1840 3 года назад
13:00 that's a very bad example comparing for loop and streams.
@ParagRane
@ParagRane 4 года назад
hii, In this you explained how Lambda expression is easy for developer, at the end we have to care about system performance and system utilization not from the developer perspective. , could you let us know does it improve the system performance or any kind of memory optimization ?
@khakr01
@khakr01 4 года назад
If is not a loop but a condition in java.
@tech_g935
@tech_g935 4 года назад
What if the body of functional interface is huge and it's needed to be invoked in multiple classes..
@TechPrimers
@TechPrimers 4 года назад
You can just wrap it up into a function and use it
@jaskiratbamrah13
@jaskiratbamrah13 5 лет назад
Do interface should have only have one method inside it ? What if interferes have 2 method defined ? Will game interface work .
@TechPrimers
@TechPrimers 5 лет назад
Functional interfaces can have only 1 method. This is to leverage the lambda usage. If there are 2 or more you can use it normally like you would before
@jaskiratbamrah13
@jaskiratbamrah13 5 лет назад
Tech Primers thank you for quick response Yes one abstract method And non abstract can be any number of can be considered
@sachwinikumarkhatri1913
@sachwinikumarkhatri1913 4 года назад
lol
@ricardo072
@ricardo072 4 года назад
class interface... LOL
@sumitrocks687
@sumitrocks687 5 лет назад
Such neat explanation. Kudos.
@wajahatsiddiqui1934
@wajahatsiddiqui1934 7 лет назад
There was no need to add foreach to players
@TechPrimers
@TechPrimers 7 лет назад
+Wajahat Siddiqui just wanted to print it. Anyways foreach will be hit only once
@SDK-gh7ld
@SDK-gh7ld 5 лет назад
Hmm.. Explanation is bit confusing
@HARPREET8676
@HARPREET8676 5 лет назад
Fudu jehda aunda oh v bhul gya
@janupasha
@janupasha 5 лет назад
Explanation problem
@nagag2889
@nagag2889 7 лет назад
nice video, Thanks...
@TechPrimers
@TechPrimers 7 лет назад
+naga g thanks naga. Glad that was useful
@TechPrimers
@TechPrimers 7 лет назад
+Tech Primers
@sandipanbiswas5232
@sandipanbiswas5232 5 лет назад
Nice Tutorial
@SarojKumar-lb5gs
@SarojKumar-lb5gs 6 лет назад
I have one question Lambda is bit difficult to debug in eclipse.
@TechPrimers
@TechPrimers 6 лет назад
I have been using IntelliJ for the past 6 years and never turned back
@EminoMeneko
@EminoMeneko 5 лет назад
@@TechPrimers IntelliJ is a commercial/paid IDE unless it is the Community Edition which removes some features. Eclipse is free, fully functional and extensible (Yes IntelliJ too but Eclipse was around so long and is so popular that it has a ton of extensions).
@burakguvenel3635
@burakguvenel3635 6 лет назад
What if I had more than one method in the interface "Series"?
@walterwhitejr8418
@walterwhitejr8418 5 лет назад
you'll get a compilation error
@ishaniherath8661
@ishaniherath8661 5 лет назад
Lambda expression can be used for interfaces which have only one method.
@ranjeetsuman7298
@ranjeetsuman7298 5 лет назад
how u wrote new Game();.... Game is interface... we can its implementation class as object... i don't understand this line Game football =new Game(); // Game is interface
@tominpmarkose
@tominpmarkose 5 лет назад
He didn't write Game football =new Game(); but this, Game football =new Game(){ public void play(){ sop("something") } }); This is how we define an anonymous inner class. It simply means that whatever you write inside new Game(){ you are creating a class which implements Game interface and you are overriding play method and giving implementation details. You may want to look into anonymous inner classes in detail since they are the basis of lambdas.
@srinivaspakala6959
@srinivaspakala6959 5 лет назад
@@tominpmarkose very good explanation... thankyou
@alnayab
@alnayab 7 лет назад
2:10 It mislead ! even if u taking as example, you cannot instantiate or create object of Game Interface with (new) operator to call play() method, u need an implementation class to call play() , where implementation class implements Game Interface and overrides play()
@neshant89
@neshant89 6 лет назад
you're not creating an instance of the interface. Rather, the code defines an anonymous class that implements the interface, and instantiates that class.
@neshant89
@neshant89 6 лет назад
stackoverflow.com/questions/9157784/java-interface-with-new-keyword-how-is-that-possible
@SriramGopalGoli030792
@SriramGopalGoli030792 5 лет назад
@@neshant89 I had the same question, thanks for clarifying.
@chucksucks8640
@chucksucks8640 4 года назад
Big deal...
Далее
Java Functional Programming | Full Course
2:22:15
Просмотров 571 тыс.
НОВАЯ "БУХАНКА" 2024. ФИНАЛ
1:39:04
Просмотров 173 тыс.
МАЛОЙ ГАИШНИК
00:35
Просмотров 383 тыс.
Учёные из Тринидад и Тобаго
00:23
Java lambda λ
18:00
Просмотров 94 тыс.
Lambda Expressions in Java - Full Simple Tutorial
13:05
Java 23 - Launch Stream
3:16:18
Просмотров 18 тыс.
Lambda Expressions in Java 8 - Full Tutorial
26:32
Просмотров 35 тыс.
Java Lambda Expressions #1 - The Basics
15:58
Просмотров 161 тыс.