#99 Map Filter Reduce Sorted in Java

preview_player
Показать описание
Check out our courses:

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO20 (20% Discount)

For More Queries WhatsApp or Call on : +919008963671

Udemy Courses:

In this lecture we will learn:
- Working of the filter method
- What is a predicate method
- Map method and its working
- How reduce method works?
- Sorted and ParallelStream methods with stream

#1
filter() method:-
- filter method needs an object as a parameter of type Predicate.
- Predicate is an interface that contains a method called test which returns a boolean value.
- When you apply the filter method on a value, if it satisfies the condition then it goes further otherwise stops.

#2
map() method:-
- Map needs an object of a functional and it is a functional interface.
- It contains a method called apply(). In apply method, we can do the desired operation on a value.
- Function takes two types, one what is accepted and the other that it returns.

#3
reduce() method:-
- Reduce method takes two parameters, one is the type and the second is the BinaryOperator for operation.
- BinaryOperator extends the BiFunction and it calls a method to apply.

#4
sorted() and parallelStream() method:-
- By using the sorted() method with a stream, it will return a sorted stream.
- There is a method called parallelStream() used with the filter that creates multiple threads to work faster.
- parallelStream should not be used with a sorted method as sorting requires all the elements together, so there multiple threads will create an ambiguity.

More Learning :

Donation:
PayPal Id : navinreddy20
Рекомендации по теме
Комментарии
Автор

Hello Navin Sir, I started this playlist of "Java for Beginners" about a month and a half ago and today I've reached the end of the series. Earlier, I couldn't understand why things were the way they were. But, it has been a smooth and great in-depth learning experience. I have never seen anyone teach Java so well on any platform. Notes at the bottom have also helped me.
Your teaching is excellent. Thank you, sir.

aribesh
Автор

Hi Navin, Im preparing for OCA/OCP exam soon.. your java series 2023 is helping me out to prepare for the exam. I completed all your videos.. Thank you so much for amazing series.. One suggestion, please make some series on "Data Structures and Algorithms..." it will great helpful for all of us. Im your big fan .. Thank you so much Navin .. you're a great teacher

sarathchandar
Автор

Thank you sir, I was watching these lectures from 21st April and also did the practice, today they were completed and I got the basics clear..❤

hell.tom_
Автор

You are the reason why i love java so much...

samarendumal
Автор

As someone that's brushing up for interviews, I can understood filter quite well, map too, but reduce really not well. The technique of pulling each operation out into it's own variable and then showing how to override the methods that need implementing, I finally understood why things are structured in a way. To then show how you can clean it up line by line to then result in the one-liner which then fits into the intermediate operations is brilliant, thank you!

Dr_JK
Автор

Thank you Naveen Sir!
Completed Java Playlist today, the way you explain is amazing!

Please consider making Data Structures also in future.

priyanshu_._
Автор

Your video collection is awsome. Short videos separed in topics. Make it easy to select what I need. Thank you very much, from Brazil.

Javaever
Автор

I have been following your videos for a long time now and I love how much you make me get involved in Java. Your way of explaining is short, sweet and clear which I like the most then any other lengthy tutorials and I also appreciate the fact that you keep updating your old playlists as well which I have not seen in other tutors videos. Keep up the work sir!!

thoshsweety
Автор

Most underrated youtuber. Initially i didn't look much, as I was mostly into code with Harry, Harry sometimes skips some topics(which he feels is not necessary for beginners -which I agree with partially) but here this guy explains almost everything. Salute to you.

krishnabangari
Автор

Alhamdullah Completed this playList Thank you sir

informationtechtips
Автор

I like you way of teaching with trial and error approach. I know you would have probably done your research in advance and you could always go error free videos. But your method of teaching makes us aware on the anticipated errors and the underlying reasons.
I also like how you have upped your game since your previous series.
I’m pretty familiar with these topics now, but I still enjoy coming to your videos when I get notifications. Appreciate you.
Also BTW, instead of doing compile and run on two different commands, you can combine two of those in a single line:
javac Demo.java; java Demo.

Purplehaze
Автор

Hi, your java tutorials are really good and i used to learn a lot from your videos .... now i started learning basic python and tried to refer your videos but since your python videos have been posted 3-4 years before i got confused with new and old versions of python... could you please do another video about the differences between old and new versions of python so that it will be helpfull for beginners in python like me

lavender
Автор

Need same kind of video for springboot also....thank u so much for this tutorial.

simplyhema
Автор

Very detailed and amazing explanation! Well done and keep up the great work. Thank you!

sammclaren
Автор

Now, i can write all the codes by my self that are taught in this playlist, without any help of notes that i created of all the codes in this playlist, it takes me couples of hours.

I started this playlist on 24 aug 2023

I would like to learn more necessary things and get a job.
Although i'm BBA student(2022)

shaad
Автор

what a wonderful teaching it is ..! this is the life-changing playlist for those who like to play with Java systematically. LOVE YOU 😍Mr. NAVIN, sir.,
this comment from Alien<.-_-.>
You are the best and most excellent teacher I have ever seen. Thank you so much, sir!❤

dillikumarnl
Автор

Thank you navin sir cannot find a teacher like you

Janumandava
Автор

I am looking for java update version, I saw, Really really Thanks, Sir.

MoeMoe-qrod
Автор

This marks the completion of everything, I have learned everything except complex use cases with generics, I guess its more useful for library maintainers.

ooogabooga
Автор

wow, i find this as a very usefull vid, thx!

nurgl