Top Java 8 Streams API Interview Questions and Answers | Parallel Stream | Code Decode

preview_player
Показать описание
Stream api in Java 8 is very important in Java 8 and code decode covered all important Java 8 Interview Questions in this video

Udemy Course of Code Decode on Microservice k8s AWS CICD link:

Course Description Video :

Java 8 Interview Questions Complete Playlist :

Stream :
If we want to process bulk objects of collection then go for streams concept.
Way to operate on collection in java 8 is Stream.
Its a special iterator class that allows processing collections of objects in a functional manner.

Eg : fetch all objects from collection of list whose value is greater than 15

Java io streams is a sequence of characters or binary data which is used to be written to a file or to read data from a file.
While streams java 1.8 is no where related to files, its related to collection object.
Java io streams related to file whereas java 8 streams are related to collection object.
Hence if we need to perform some operations on collection there we should go for streams.

To represent group of collection as single entity then we should use collection concept.

If we want to perform operation on bulk objects in collection then we should go for Streams.

We can get stream object by :

Once we get stream object we can process the object of collection.
Processing of stream consists of 2 steps/ stages
Configuration of stream
Processing that configuration
Configuration can be done by
Map
Filter

What if we don’t want to filter out.
We rather want to create new object against each existing stream object based on some function.

EG in given stream create new object by squaring its value

If we want to fetch / filter objects from collection like eg : filter only even numbers from array list collection the use Filter for configuration of stream.

If we want to perform some operation on each objects of the collection then create another mapped object with different value(after operation is performed ) for each object of that collection, then use map.

In filter, because of filtering, number of objects in filtered list is less than original list While in Map same number of objects are there in both new and original list created.

-------------------------------------------------------------------------------------------------------------------------------------

Code Decode Playlists

-------------------------------------------------------------------------------------------------------------------------------------
Subscriber and Follow Code Decode

--------------------------------------------------------------------------------------------------------------------------------------

#java8 #java8StreamApi #java8interviewquestions #codedecode
Рекомендации по теме
Комментарии
Автор

This lady has found out how Java is meant to be taught. You're literally teaching new things while taking interview questions which is very effective way of teaching. We students usually face issue on where to learn concept and where do find questions but you've covered that gap brilliantly. Brilliant !

SkepticTuism
Автор

I have never seen any tutor sparing this much of energy to explain the concepts to the viewers. You deserve 5 star, if there were any star rating for this video. Keep up the good work.

ramsp
Автор

Dont know whats the name of the tutor, take a completly nailed it with perfection, how effortlessly you are teaching that makes complete sense to the keep inspiring us and educate

tallurivamsi
Автор

Taking as a interview points and covering all the topics was an brillant idea and your videos are very useful to me. THANKS ALOT

bhavyaswithamitta
Автор

Thanks a ton mam! I have never understood these concepts these well! We have no words to really thank you for your great efforts and the way you teach us to understand complex things very easily and we will not forget them. I wish you to grow more in teaching in tech career. Please never stop and keep creating or covering more concepts. Thanks you so much again

mohammedsufi
Автор

Liked this video so much! Learnt streams for the first time and understood it very clearly in a single video! Keep up the good work 👍🏻🤗

veera
Автор

Hi Madam,
I am working on one of the multinational company but here using only java 1.7 only but i want to learn java 1.8 at that time, i am searching in YouTube and saw many videos but from the heart it is very understandable for your videos.
Thank you good explanation madam but please share with me continue videos on this. Finally i became strong in java 8

swamulupasupuleti
Автор

While watching your each video I just got to know one thing teaching profession has its own charm and no one can easily dive and deliver.

kaminisaini
Автор

Waiting for multi threading questions please ... upload ASAP.. thank you in advance 🙏🙏🙏

kichaloo
Автор

You don't know how much your helping people like me mam. Thank u so much for the video. From now on words I don't get any fear learning new concepts in Java because I have your teachings. Thanks a lot keep up the good work.

AbhishekKumar-onzm
Автор

Very effective video. I got clear idea of Stream and removed phobia for Stream from my mind

mit
Автор

one of the best explanation on streams.whenever i revise for any java interviews will refer your videos..Thank you so much for your hardwork !!

magantiraju
Автор

You are a much detailed explanation and so much efforts...I am really really thankful🥺

sagarikadevnath
Автор

Your videos helped me a lot!! in future will defenitely buy bigger super thank

abhishekchaudhari
Автор

Hi, I gone through all ur java8 series in one day morning session, next day am able lo to answer java8 questions in the interview, within 4 days am able to crack wipro, Accenture, TCS, Congnizant etc. Interviews. Thanks a lot for your efforts. Please do videos on collection classes internal implementation like array list, vector, stack, etc.

jakkalapavithra
Автор

Thank you much for your valuable information it's alot for me 👏🤝💐

harshach
Автор

way of teaching with live demo is very good by this anyone can easily understand....good job

rachnagupta
Автор

The way of explaining is very clear and easy to understand.

sravanthikotte
Автор

very well explained in very less time.

tabishquadri
Автор

You are such a superb tutor! Stay blessed and Thank you very much!!

GauravSharma-sqzc