Тёмный

Java 8 Streams API 

Defog Tech
Подписаться 84 тыс.
Просмотров 154 тыс.
50% 1

Process your arrays and lists in more elegant manner.
Channel
----------------------------------
Complex concepts explained in short & simple manner. Topics include Java Concurrency, Spring Boot, Microservices, Distributed Systems etc. Feel free to ask any doubts in the comments. Also happy to take requests for new videos.
Subscribe or explore the channel - / defogtech
New video added every weekend.
Popular Videos
----------------------------------
What is an API Gateway - • What is an API Gateway?
Executor Service - • Java ExecutorService -...
Introduction to CompletableFuture - • Introduction to Comple...
Java Memory Model in 10 minutes - • Java Memory Model in 1...
Volatile vs Atomic - • Using volatile vs Atom...
What is Spring Webflux - • What is Spring Webflux...
Java Concurrency Interview question - • Java Concurrency Inter...

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

 

27 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 133   
@sharanyarai378
@sharanyarai378 5 лет назад
Thanks for video.. is stream are faster than old for loop ? if yes why?
@DefogTech
@DefogTech 5 лет назад
Welcome! No, they aren't faster. They just help make the program smaller, succinct and easier to read/maintain. Theoretically, using parallel stream can be faster than for-loop, but only if the stream has large number of elements and there are lot of filters/transforms involved.
@petmik5022
@petmik5022 5 лет назад
not always, butstreams are used for better read and less boilerplate code and are used for internal commands to do something with values and then reffer them to some another date type etc.
@iitgupta2010
@iitgupta2010 4 года назад
Even sometimes streams are slower than simple for loop if your data is not huge enough.
@asashish905
@asashish905 4 года назад
But debugging has got tough now a days. 😒😒
@tiyasha01
@tiyasha01 3 года назад
@@DefogTech it also reduces memory footsprint for intermediate operations
@boosan_m
@boosan_m 3 года назад
Let’s start with an example....! This is how this video starts, not even a single second of unnecessary content.. spot on .. exceptional 👏
@ciccioosys
@ciccioosys 4 года назад
The best and complete tutorial I've seen about Java Streams
@matthiasmoser6096
@matthiasmoser6096 2 года назад
I do not know if this was done on purpose, but there is a mistake on the first piece of code: You want if ( min > numbers[ i ] ) at 0:10 . Otherwise, you would be calculating the maximal value. But this actually shows a useful aspect of Java Streams: less mistakes while writing trivial code.
@m_sharif
@m_sharif 9 месяцев назад
Exactly, that's the usefulness of java streams.
@monilpanchal
@monilpanchal 5 лет назад
Amazing introductory video. Adding my two cents to parallel streams: Choosing between stream and parallel stream depends on various important factors and also the prerequisites. 1) Parallel streams internally uses fork-join(divide and conquer technique) to evenly distribute tasks to multiple threads to achieve parallelism. Hence the function/operation(intermediate operation) that is being performed on streams should be STATELESS(parallel friendly) else it will deteriorate the performance than a normal stream. 2) Breaking and merging of stream should be easy. For example an ArrayList is easy to break and merge than a linkedList.
@dbvs007
@dbvs007 2 года назад
This is the best and crisp video on Streams.. covered so much in short time and your audio is also soothing to listen , Thank you for all your hard-work 🙏🙏🙏
@venkatasubbareddy.g2283
@venkatasubbareddy.g2283 5 лет назад
I'm simply understood the concept now very well. The way of explanation is awesome. Thanks for wonderful diagrammatic explanation to easily remember the concepts. Thank you so much Defog Tech.
@giventavideoshare
@giventavideoshare 5 лет назад
Defog Tech is a great youtube channel for great explanations for Java Tech related stuff. Thanks.
@luminoussheep5270
@luminoussheep5270 5 лет назад
Excellent work! Thank you for taking the time to put this video together and for the clear explanation it contains.
@koleff2541
@koleff2541 3 года назад
Very helpful! I had 3 hours of university lectures and l didnt learn anything. I come to youtube and learned 100% of everything from the video! Thank you!
@nithin_satheesan
@nithin_satheesan 4 года назад
Crisp and to the point as always. Keep up the good work! Really appreciate your videos 😊
@jameswagstaff1962
@jameswagstaff1962 5 лет назад
Incredibly put together and very in depth! This guy is definitely getting a subscribe from me! Thanks
@justinjustin5993
@justinjustin5993 4 года назад
Superb and clear explanation of multiple important concepts in 15 mins.. Thanks a ton..
@samarthurs8000
@samarthurs8000 5 лет назад
Awesome explanation! The figures @5:05 and @11:28 makes it so clear to understand.
@farhaankazi7134
@farhaankazi7134 4 года назад
Thanks a lot. You gave lot of information in less time as well as you did not make hurry in explanation and speaking speed. Amazing man. I just surprised that how could manage to impart good chunk of info in less time even you spoke at moderate speed, showed code examples, diagrams with explanation, simply amazing. Other good thing in your video is that you also covered Terminal operation in detail with clarity and simplicity of course here also you did it in less without loss of quality. Most of other tutorial skipped explaining Terminal operation part.
@GurmeetSingh-yo4db
@GurmeetSingh-yo4db 4 года назад
Very nice video to understand streams with examples. I have been following your tutorials they always been amazing with such good content. Real time examples of streams. much appreciated.
@nidhi10sharma
@nidhi10sharma 4 года назад
Very well explained. Thank you so much!!!
@athisii_ekhe6167
@athisii_ekhe6167 3 года назад
One of the best videos about streams. Thanks.
@jagadishpalle4037
@jagadishpalle4037 5 лет назад
I always admire of ur work. You give more info in less time with good pictorial representation. You deserve more subscribers. May be changing channel name helps. Waiting for more content...
@Hedabal
@Hedabal 3 года назад
Best Java Streams video. 🙏 Finally Understood stream
@sheoran20
@sheoran20 3 года назад
Outstanding !!!!! the best video on streams I came across.
@sumitpaul3080
@sumitpaul3080 4 года назад
Honestly speaking, you should make a whole series of Java. Lots of good wishes to you.
@ShivamSingh-me1nb
@ShivamSingh-me1nb 3 года назад
Best video on stream api so far Thankyou very much
@sagarmelmatti
@sagarmelmatti Год назад
I checked ur channel quiet late , but ur all videos are awesome ,easy to understand and explanation is far better than other channel , thanks
@k9870
@k9870 4 года назад
Ur videos are beautifully explained,,,u have that gift,not everyone can explain with such clarity,,,,mind blowing tutorials...ND 8 dislikes are from those people's who can't understand if God comes personally to teach them...thanqqq for this again tutorial...
@chakrapanikulkarni8256
@chakrapanikulkarni8256 5 лет назад
Thanks for the video.. Your tutorials are crisp and clear..
@SatyamRaj55
@SatyamRaj55 2 года назад
Very clear explanation, thanks for your effort.
@bmnaidu2412
@bmnaidu2412 5 лет назад
Excellent explanation ... Awesome.. Thank you so much.
@0312amar
@0312amar 2 года назад
One word Excellent!
@gnanasekaranebinezar7199
@gnanasekaranebinezar7199 5 лет назад
Awesome Presentation!!! Vivid Explanation about Java 8 Stream!! Good work👏
@DefogTech
@DefogTech 5 лет назад
Thank you!
@selvakumarm8948
@selvakumarm8948 5 лет назад
Great channel with precise explanation. 👍
@masum.v
@masum.v 4 года назад
You explanation is awesome. Keep going, and thank you very much for you good work.
@ishwarchandra5559
@ishwarchandra5559 3 года назад
Best for revision of java stream api
@jasagientertainment8432
@jasagientertainment8432 5 лет назад
if ( min > numbers[i] ) the condition has to be min > numbers[i] . otherwise the tutorial is really good.
@rabisankarpodder7839
@rabisankarpodder7839 4 года назад
It was for maximum number calculation in old way.
@sanijshakya3763
@sanijshakya3763 3 года назад
@@rabisankarpodder7839 but he is doing min for stream example so the if logic is wrong.
@Elvis_system
@Elvis_system 2 года назад
min > number[i]
@warneyfied
@warneyfied 3 года назад
Great tutorial. Thank you so much!
@harshitshukla7382
@harshitshukla7382 5 лет назад
Thanks for the requestes video! Much appreciated :)
@DefogTech
@DefogTech 5 лет назад
You're welcome!
@srikothapally9810
@srikothapally9810 4 года назад
Thank you for the good presentation.
@javaforengineersYT
@javaforengineersYT 4 года назад
Great video. Very useful info. Thanks.
@nick-sx2zn
@nick-sx2zn 2 года назад
Thanks for this golden content
@rajasundarrajan2066
@rajasundarrajan2066 Год назад
excellent video, kudos
@sagar1691
@sagar1691 4 года назад
Very nicely explained
@kiranraghuwanshi1012
@kiranraghuwanshi1012 3 года назад
thank you so much for this video, got more idea about stream api .
@subramanianchenniappan4059
@subramanianchenniappan4059 2 года назад
Very clear explanation . Useful for interviews 😊😊. Thanks,🙏🙏🙏
@muthusamy1619
@muthusamy1619 2 года назад
Thanks for the video, small correction find the min number in an older way, the if condition was wrong (if (number[i] < min))
@alpavaidya412
@alpavaidya412 4 года назад
Ur an excellent teacher...keep it up 😊
@yusufsengul69
@yusufsengul69 5 лет назад
Very clear explanation, thanks for putting it together. It seems like C# LINQ, but for Java.
@tippabatinisantoshkumar2931
Really amazing...
@saravanprathi6956
@saravanprathi6956 3 года назад
Thanks a ton for this video!!
@ArvindVerma-ct7oq
@ArvindVerma-ct7oq 5 лет назад
Awesome !!! thanks a lot
@mohammadajaz2844
@mohammadajaz2844 4 года назад
Thanks for the Video...!!
@Togrul280
@Togrul280 4 года назад
This video is amazing !
@rohitumrikar5258
@rohitumrikar5258 4 года назад
Nice Explanation thanks
@vivekmishra5876
@vivekmishra5876 4 года назад
awesome explaination
@ahmadfx8962
@ahmadfx8962 Год назад
Great, Thank you 😘😘😘😘😘😘😘
@gajanansirsat4424
@gajanansirsat4424 3 года назад
You are the best…awesome explanation with great examples. Thank you, Keep going.👍
@chandrababunaidu739
@chandrababunaidu739 2 года назад
with above code r u getting min number?...Did you tried above code?
@venkyv9289
@venkyv9289 3 года назад
Nice explanation
@pramodcv
@pramodcv 5 лет назад
Too awesome video
@balaji7370
@balaji7370 3 года назад
Good explanation 🤗
@ashvajitchauhan608
@ashvajitchauhan608 5 лет назад
Thanks you so much. Keep it up please
@prakhargupta629
@prakhargupta629 5 лет назад
Nailed it!
@anirudhjadhav9663
@anirudhjadhav9663 3 года назад
This video is very interesting. Although! The old code to find out the minimum element from the array The "if" condition is wrong. it's < if ( min < numbers[i] ) > the expected should be < if ( min > numbers[i] ) > the code in your video will give you the maximum number.
@vijaykumarreddyt3287
@vijaykumarreddyt3287 Год назад
Great video
@johncerpa3782
@johncerpa3782 3 года назад
Great video!
@Erebus2075
@Erebus2075 3 года назад
this was really good :)
@shellindebted5328
@shellindebted5328 5 лет назад
Great Tutorial Sir!!i would like to caption it as"JAVA8 Streams API--made easy". Today on teacher's day, i take the privilege to wish you "Happy Teacher's Day".Let your guidance be always with us.Thank you!!
@DefogTech
@DefogTech 5 лет назад
Thank you for the kind words sir! Happy Teacher's Day to you too!
@Gus-px7hd
@Gus-px7hd 4 года назад
Very nice, thx.
@abhinav9469
@abhinav9469 4 года назад
Very nice tutorial
@nagesh007
@nagesh007 Год назад
Awesome
@mateenmansoori6128
@mateenmansoori6128 4 года назад
Great👍
@anuj2307
@anuj2307 4 года назад
Thanks, good tutorial. Just a suggestion, it would be much more efficient to filter the employee first (isActive) and then sort it.
@dktailor123
@dktailor123 5 лет назад
Thanks for awesome Java 8 stream video plzz add more video if possible
@DefogTech
@DefogTech 5 лет назад
You're welcome! Thank you for the kind words! Will keep adding more, hopefully more frequently
@akware977
@akware977 4 года назад
Hello thanks for wonderful and clear tutorial..worth a every second in the video. Please correct me if I am wrong, As per my understanding in stream API we can use multiple intermediate operation(lazy initialization) and single terminal Operation(eager initialization).
@karankanojiya7672
@karankanojiya7672 2 года назад
Respect ++ Sir !
@pradeepanbaluchamy8469
@pradeepanbaluchamy8469 5 лет назад
Well explained..thanks
@DefogTech
@DefogTech 5 лет назад
You're welcome!
@InterviewDOT
@InterviewDOT 5 лет назад
Nice presentation :) InterviewDOT
@shrenikpatodi4854
@shrenikpatodi4854 3 года назад
great
@codingwithjava7297
@codingwithjava7297 4 года назад
Thank you sir
@dhiabouacida9155
@dhiabouacida9155 3 года назад
thank you
@pinkeshbeauty
@pinkeshbeauty 4 года назад
thanks alot
@hyperborean72
@hyperborean72 4 года назад
Strangely enough you have a mistake on your first slide. The condition for defining min value is the opposite. Other than that quite informative video - great job.
@koeber99
@koeber99 5 лет назад
This is great intro to java streams..... however, how are time/space complexity calculated with Java streams?
@mrAshwin06
@mrAshwin06 4 года назад
Thanks mate ! Another excellent video. I have a question. I get confused on when to go for .map() method while working with streams
@ankurtripathi9799
@ankurtripathi9799 3 года назад
cool put some system design question as well.
@balajivenkatesan7434
@balajivenkatesan7434 5 лет назад
Super...plz add more videos about java 8 features.... Advance thanks...
@DefogTech
@DefogTech 5 лет назад
Yes sir, will add more soon!
@ChittipoluSA
@ChittipoluSA 4 года назад
Thanks for videos. Could you please load on class loader concepts
@vaib5917
@vaib5917 5 лет назад
Streams do not apply those intermediate operations until the terminal operation is not found. That's the power of streams, they are lazily evaluated.
@DefogTech
@DefogTech 5 лет назад
Agree about the lazy evaluation. Though we hardly ever pass around streams (without terminal operations), unlike Reactive Streams which are meant for that purpose. In official documentation, laziness is more about not evaluating elements which are filtered out in previous filter operation, (eg: sorting need not sort duplicate elements, if distinct() is used before it).
@rishiraj2548
@rishiraj2548 Год назад
👍
@mustafakamalsirajudeen8133
@mustafakamalsirajudeen8133 5 лет назад
Waiting for your Lambda tutorial eagerly. Can you post it this week? :)
@DefogTech
@DefogTech 5 лет назад
Difficult sir, I will try.. definitely on my list though
@geektattoomusic1882
@geektattoomusic1882 4 года назад
About performance: 1 order of magnitude slower stream is.
@rock5616
@rock5616 5 лет назад
I have a List of Java Objects, using Stream I'm trying to get a match of an object. If present then i wanna update it, else i wanna add a new Java Object into the existing List. Is there any simpler way of doing it?
@PrateekMehtaABDFAN
@PrateekMehtaABDFAN 2 года назад
Will the order of intermediate operations matter for stream to optimize them ?
@whythosenames
@whythosenames 4 года назад
1:25 but System.out is an object, why is it then a *static* method reference?
@rishiraj2548
@rishiraj2548 Год назад
🙏👍👍
@venkatb8317
@venkatb8317 4 года назад
Hi IntStream.range(1, 11),i want to take reverse IntStream.range(11, 2) how can we do Thanks
@MuhammadUsama-zf3iu
@MuhammadUsama-zf3iu 3 года назад
I have a question, suppose we have an array arr = {1, 5 ,10}; i want to check odd and even and return a string through steam API like "1o5o10e", for every odd add o and for every even number add e, How can be possible this, please.
@UditMishra24
@UditMishra24 5 лет назад
In first example, the if condition is wrong. It should be - if(numbers[i] < min)
@ShekharPachauri
@ShekharPachauri 3 года назад
I noticed the same 😂
@raghavasreenivasulu8072
@raghavasreenivasulu8072 3 года назад
finding min value condition is wrong (replace "for (int i = 1; i < numbers.length; i++) { if(min>numbers[i]) { min=numbers[i]; } }")
@khakr01
@khakr01 4 года назад
Great videos. Request to increase the font size in the presentation. The contents are not clearly visible on mobile devices.
@DefogTech
@DefogTech 4 года назад
sure, will do.. thanks for pointing out!
@felipemello8674
@felipemello8674 10 месяцев назад
FIY: the logic for the first example "The old way" is not quite right it's finding the max instead of min the operator should be ">" instead of "
@manishgudral2834
@manishgudral2834 5 лет назад
in this example you will find max number not the min number
Далее
Functional Interfaces in Java 8
9:32
Просмотров 82 тыс.
Java Streams: Beyond The Basics
49:21
Просмотров 72 тыс.
ФОКУС С БАНАНОМ🍌
00:32
Просмотров 128 тыс.
What is an API Gateway?
10:47
Просмотров 692 тыс.
Java Asynchronous Programming
16:07
Просмотров 145 тыс.
Lambda Expressions in Java - Full Simple Tutorial
13:05
What is Spring Webflux and when to use it?
17:46
Просмотров 241 тыс.
Introduction to CompletableFuture in Java 8
19:34
Просмотров 322 тыс.
Phaser vs CountDownLatch vs CyclicBarrier
13:40
Просмотров 76 тыс.
This Is Why Python Data Classes Are Awesome
22:19
Просмотров 797 тыс.