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

Sdílet
Vložit
  • čas přidán 15. 02. 2021
  • 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:
    openinapp.co/udemycourse
    Course Description Video :
    yt.openinapp.co/dmjvd
    Java 8 Interview Questions Complete Playlist :
    • Java 8 Interview Quest...
    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
    Why streams were introduced in java 8 if we already had java.io.stream?
    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 :
    Stream s = collectionObject.stream();
    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
    Stream s = collectionObject.stream().filter(i 🡪 i % 2 ==0);
    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
    Most Asked Core Java Interview Questions and Answers : • Core Java frequently a...
    Advance Java Interview Questions and Answers : • Advance Java Interview...
    Java 8 Interview Questions and Answers : • Java 8 Interview Quest...
    Hibernate Interview Questions and Answers : • Hibernate Interview Qu...
    Spring Boot Interview Questions and Answers : • Advance Java Interview...
    Angular Playlist : • Angular Course Introdu...
    GIT : • GIT
    -------------------------------------------------------------------------------------------------------------------------------------
    Subscriber and Follow Code Decode
    Subscriber Code Decode : czcams.com/users/CodeDecode?...
    Linkedin : / codedecodeyoutube
    Instagram : / codedecode25
    --------------------------------------------------------------------------------------------------------------------------------------
    #java8 #java8StreamApi #java8interviewquestions #codedecode

Komentáře • 269

  • @ramsp35
    @ramsp35 Před 3 lety +30

    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.

    • @CodeDecode
      @CodeDecode  Před 3 lety +4

      This means a lot Ramanathan 🙏🙏🙏🙏🙏thanks. This doesn't let our hardwork go in vain 🙏🙏

    • @josemarioespinoza6652
      @josemarioespinoza6652 Před 2 lety

      @@CodeDecode Yeah, I confirm, its really enjoyable to see how you care about the concepts youre explaining

  • @SkepticTuism
    @SkepticTuism Před 9 měsíci +8

    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 !

    • @CodeDecode
      @CodeDecode  Před 9 měsíci +3

      Thanks for such a nice comment man. Means a lot to us 🙏🙏

  • @tallurivamsi6413
    @tallurivamsi6413 Před 7 měsíci +2

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

  • @veera119
    @veera119 Před rokem +4

    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 👍🏻🤗

  • @chandiniasha7359
    @chandiniasha7359 Před 3 lety +1

    Very happy to find such videos... really helpful also clear explanation .. expecting more and more from u ❤️

  • @mohammedsufi4649
    @mohammedsufi4649 Před 6 měsíci +1

    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

  • @manindersingh6371
    @manindersingh6371 Před 2 lety

    Watching till this video. Content is Awesome. Thanks for making the videos on the that. I would like to say that the way you are explaining the things is awesome. Would like to watch videos if you will cover the topics of Kakfa and security with okta. I searched everywhere but did not find any good information about that topics.

  • @sproutboot
    @sproutboot Před rokem +1

    Very good. Cant wait to see next one that you mention in the video. About of() and stream processing part.

  • @GauravSharma-sq7zc
    @GauravSharma-sq7zc Před rokem +1

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

  • @manojyadavofficial8535
    @manojyadavofficial8535 Před 3 lety +1

    Wow... Again very good content and useful for interview :)
    Thank you so much..

  • @sagarikadevnath2716
    @sagarikadevnath2716 Před rokem +1

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

  • @magantiraju93
    @magantiraju93 Před rokem +1

    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 !!

  • @kamraniqbal3729
    @kamraniqbal3729 Před 3 lety +1

    Great video very well explained.
    You are doing a awesome job keep it up. Thanks!!

  • @harshasharma8087
    @harshasharma8087 Před 3 lety +1

    Thank you for making these videos. They are really helpful.

    • @CodeDecode
      @CodeDecode  Před 3 lety

      M glad it is helpful Harsha 👍👍

  • @satyaprakashparida5507
    @satyaprakashparida5507 Před 3 lety +2

    Thanks a lot, mam.... actually I'm eagerly waiting for this.

  • @mit1696
    @mit1696 Před 2 lety +1

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

  • @gireeshkumar7959
    @gireeshkumar7959 Před 3 lety +1

    Actually waiting for streams.. thanks a ton madam💐

  • @akshayengineer2018
    @akshayengineer2018 Před 2 lety +1

    Thank you so much mam 😊🙏...
    You explains every topic in very simplified way...

  • @shashankgarg8128
    @shashankgarg8128 Před 3 lety +1

    Thankyou so much , mam for this amazing content with great knowledge and way of teaching is so good.

  • @renuphilip8555
    @renuphilip8555 Před 2 lety +1

    Appreciate the efforts ,awesome demonstration !

  • @ayshwaryachavan7738
    @ayshwaryachavan7738 Před 2 lety +1

    Very well explained. 👍 Thank you so much .

  • @AbhishekKumar-on8zm
    @AbhishekKumar-on8zm Před 11 měsíci +1

    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.

  • @mansijain8092
    @mansijain8092 Před 3 lety +1

    Thanks for this Java 8 Stream video. I'm waiting for Parallel Stream video please upload ASAP. It will be very helpful.

    • @CodeDecode
      @CodeDecode  Před 3 lety

      Sure, we will upload that soon 👍👍

  • @kirushnashirre6791
    @kirushnashirre6791 Před 3 lety +2

    Good one again, please add flatMap vs map in the next video. Thank you!!

  • @aadisaagara582
    @aadisaagara582 Před 2 lety +1

    This s amazing👍. Keep the good work going.

  • @naman_saxena
    @naman_saxena Před 3 lety +3

    Your way of explaining is very clear and easy to understand, thanks a lot!
    Next part of this video is awaited. I sincerely request you to cover the following points also for future videos:
    1. Multithreading Concepts (wait/sleep/join/yield methods, executor service)
    2. Internal Implementation of Collection classes - (HashSet, ArrayList, PriorityQueue, and also Hashmap).
    I recently discovered your youtube channel and immediately hit Subscribe, keep posting more videos!

    • @CodeDecode
      @CodeDecode  Před 3 lety

      Thanks for the suggestions. Will upload them ☺👍👍

  • @nagar4u
    @nagar4u Před 3 lety +2

    You are doing such a good job...Hope you and we(your virtual family) get a handsome amount of subscribers

    • @CodeDecode
      @CodeDecode  Před 3 lety +1

      Thank you so much and we hope the same ......

  • @harishtati5667
    @harishtati5667 Před 3 lety

    I have one doubt mam. When i hold ctrl and clicking the inbuilt classes like arraylist or whatever it is then its going to that particular class but i couldn't see those in left side package explorer. Do we need to make any configuration for that mam?

  • @pradyumnbaloji837
    @pradyumnbaloji837 Před 2 lety +1

    I loved the way you explain and clear.

  • @sravanthikotte6464
    @sravanthikotte6464 Před rokem +1

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

  • @kichaloo3669
    @kichaloo3669 Před 3 lety +8

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

  • @bhuvanakuppusamy6933
    @bhuvanakuppusamy6933 Před 3 lety +1

    Very useful for the interviews . . Thankuuu so muchhhh

  • @simha691
    @simha691 Před 3 lety +1

    Very useful info 🙏🙏🙏, Thank you madam.

  • @jakkalapavithra2734
    @jakkalapavithra2734 Před 2 lety +1

    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.

    • @CodeDecode
      @CodeDecode  Před rokem

      Thanks for the motivation and all the very best for your future interviews 😃

  • @hrancati
    @hrancati Před rokem +1

    thank you very much, it was a very clear and useful exposition

  • @ajaydangi582
    @ajaydangi582 Před 3 lety +1

    next level of explanation Wahh ,thank you so much .Moz krdi

  • @Priya1_123
    @Priya1_123 Před 2 lety +1

    Perfect explanation. You are a very good teacher 🙏. If possible please adjust the font size so that the video can be viewed from mobile as well

    • @CodeDecode
      @CodeDecode  Před 2 lety

      Thanks a ton Priya 🙂👍 sure we will do that

  • @harshach8314
    @harshach8314 Před 7 měsíci +1

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

  • @abhishekchaudhari2344
    @abhishekchaudhari2344 Před rokem +1

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

    • @CodeDecode
      @CodeDecode  Před rokem +1

      Thanks Abhishek. You being around is the most important thing for us. 🙂🙂keep learning keep rocking Man 🎉🎉🎉🎉

  • @sreeram543
    @sreeram543 Před 3 lety +2

    Thank you very much .. will be waiting for continuation video.. and also please do it for multi threading

  • @kaminisaini7922
    @kaminisaini7922 Před 2 měsíci +1

    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.

  • @rachnagupta7804
    @rachnagupta7804 Před 3 lety +1

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

  • @nwarkar
    @nwarkar Před 3 lety +3

    All the topics covered are just awesome, keep doing great work.

  • @amarthyaseshu683
    @amarthyaseshu683 Před 3 lety +1

    Thanks for sharing!

  • @user-rl8dl2sz9f
    @user-rl8dl2sz9f Před 8 měsíci +1

    Great video with full explanation. 👍🏻

  • @shreyagupta7675
    @shreyagupta7675 Před 3 lety +1

    Very helpful!!!❤️

  • @vikki5013
    @vikki5013 Před 2 lety +1

    Very Nice and easy video to understand Java Streams!

  • @kichaloo3669
    @kichaloo3669 Před 3 lety +1

    Thank you so much 🙏🙏🙏

  • @testcase2299
    @testcase2299 Před 2 lety +1

    nicely explained got it in first time.thankyou mam

  • @moulimanthra7542
    @moulimanthra7542 Před 3 lety +2

    Very Informative and clear explanation thank you

  • @princeofareas198
    @princeofareas198 Před 3 lety

    Streams will take only one input and if have many parameters to pass and need to validate inside the lambda expression, (i.e list is already coming inside filter or map, i need another two parameters where I want to check the condition ?
    Also I have a flag/boolean/string, based on the interation, I need to set the new value and return?

  • @manosij00roy
    @manosij00roy Před 3 lety +1

    Thank You so much!!

  • @vinayuddagiri
    @vinayuddagiri Před 2 lety +1

    Very good explanation.

  • @kazaasekhar
    @kazaasekhar Před 2 lety +1

    really good thank you for your channel

  • @blessyRelatable
    @blessyRelatable Před 3 lety

    Very nice explaination thank you

  • @tabishquadri
    @tabishquadri Před rokem +1

    very well explained in very less time.

  • @pranjalsharma499
    @pranjalsharma499 Před 3 lety +1

    Nicely Explained

  • @ramyal5371
    @ramyal5371 Před 3 lety +1

    Well explained👏👏👏 ma'am please upload next part

  • @manognajoshik8465
    @manognajoshik8465 Před 2 lety +1

    Thank you very much ma'am..this tutorial is helping me like anything. Ur hard work is really commendable and such a lovely explanation

    • @CodeDecode
      @CodeDecode  Před 2 lety

      Thanks a ton Manogna 🙂👍. Thanks for all the love and support

    • @manognajoshik8465
      @manognajoshik8465 Před 2 lety +1

      Ma'am receiving response from you made my day..could you please provide a tutorial on RMI? Have gone through many videos but could not be successful in understanding it..awaiting your explanation

    • @CodeDecode
      @CodeDecode  Před 2 lety

      Sure Manogna we will do that but tell us you need the level of video to be of developer lever or college graduation level.

    • @manognajoshik8465
      @manognajoshik8465 Před 2 lety

      @@CodeDecode developer ma'am..

  • @nikhileshyoutube4924
    @nikhileshyoutube4924 Před 2 lety +1

    Very clear explanation ⭐⭐⭐⭐⭐ 🔥

  • @saikiranGoud444
    @saikiranGoud444 Před 3 lety +1

    Well explained 👍🏻

  • @ninadkhire
    @ninadkhire Před 2 lety +2

    Very very very very very good videos....!

  • @anjalijaiswal1750
    @anjalijaiswal1750 Před 2 lety +1

    Awsome Ma'am!

  • @mohammadhamzasiddiqui9832

    Amazing ❤️ thank you so much ! Lots of love all the way from Pakistan ! :)

  • @rahul.ranjan1242
    @rahul.ranjan1242 Před 3 lety +1

    Very nice explanation, thanks a lot.

  • @shankar8816
    @shankar8816 Před 2 lety +1

    thanks alot mam. i have cleared my interview today. lots of questions from this playlist

    • @CodeDecode
      @CodeDecode  Před 2 lety +1

      Many congratulations Shankar 🎉🎉🙂🙂. Keep learning keep shining Man⭐✨

    • @shankar8816
      @shankar8816 Před 2 lety +1

      @@CodeDecode thank you. Its alot to me . Happy new year 🥳

    • @CodeDecode
      @CodeDecode  Před 2 lety +1

      Thanks!! Happy new year to you too Shankar. May this year bring you all the success , health and happiness to you and ur family.

  • @mayankyadav9425
    @mayankyadav9425 Před 3 lety +1

    Thanks a lot

  • @sanjaydhikodi7516
    @sanjaydhikodi7516 Před 2 lety +1

    Thanks you so much for crystal clear explainations....Its helping me a lot to revise and understand depth in Java 8....Your hardwork is paying us thats the beauty of your teaching 😊👍

    • @CodeDecode
      @CodeDecode  Před 2 lety +1

      🙂😇Thanks Sanjay. May you flourish and touch heights in your career Sanjay. We wish u all the very best for your future. Keep Rocking Man 🎉🎉

    • @sanjaydhikodi7516
      @sanjaydhikodi7516 Před 2 lety +1

      @@CodeDecode Thanks for your teaching, your java videos making us more confident on subject, Please make videos on executor service on multithreading.

  • @vickybhoir3017
    @vickybhoir3017 Před 2 měsíci +1

    nice explaination

  • @yumraj12
    @yumraj12 Před 9 měsíci +1

    Hi, You are awesome while describing any thing with code, I am following this channel since long, Do we have a repos for this or all the videos you have?

    • @CodeDecode
      @CodeDecode  Před 9 měsíci

      We will search and upload on git 🙂

  • @swamulupasupuleti324
    @swamulupasupuleti324 Před 7 měsíci

    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 CZcams 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

    • @CodeDecode
      @CodeDecode  Před 7 měsíci

      Hello. Thanks for such an awesome comment. These comments motivates us to put more such content. Thanks for taking your time out to appreciate us 🙂👍

    • @CodeDecode
      @CodeDecode  Před 7 měsíci

      Java 8 Interview Questions(New Features): czcams.com/play/PLyHJZXNdCXsdeusn4OM33415DCMQ6sUKy.html

    • @CodeDecode
      @CodeDecode  Před 7 měsíci

      Java 8 Coding Interview Questions (Most Asked): czcams.com/play/PLyHJZXNdCXsfcMboYwGoL6wKAFPxljz5W.html

  • @maheshakkemwar509
    @maheshakkemwar509 Před 3 lety +1

    Thank you 3000 🙂

  • @Cityview525
    @Cityview525 Před rokem +1

    Very good..

  • @prasadjambhale9543
    @prasadjambhale9543 Před 3 lety +3

    Really loved this series, thanks for the videos.
    Also, there's a joke.
    What is Java?
    Noone:
    Code Decode: Java is NOTHING, but a programming language

    • @CodeDecode
      @CodeDecode  Před 3 lety

      😂thanks for supporting 👍👍

  • @unemployedcse3514
    @unemployedcse3514 Před 22 dny +1

    awesome ❤

  • @UzoAfrica
    @UzoAfrica Před rokem +1

    Question: How can you use mapping and stream to multiply two numbers that are in different objectCollection list.
    i really appreciate this video.

    • @subhampatel993742239
      @subhampatel993742239 Před rokem +1

      You can create an IntStream and use the stream values as index of the array and get the values and Multiply in a Map. Streams are not necessarily best everywhere but good for practice

  • @user-si5it5ew6j
    @user-si5it5ew6j Před rokem

    Hi, madam, your teaching style is much more energetic if you have no problem can you explain to me which one is faster without a stream or with a stream in my case without stram it's taking 2ms (milli seconds) but in the case of stream it's taking 7ms. (Average)

  • @josephnairpudupermanil8679

    Nice learning Mam

  • @ponsivakumarmanoharan4994

    thank you

  • @vigneshn4530
    @vigneshn4530 Před 3 lety +1

    Parallel stream technique video please do it ASAP
    I LIKE YOUR TEACHING METHOD

    • @CodeDecode
      @CodeDecode  Před 3 lety

      Next video will be on parallel streams 🙂

  • @narenm2031
    @narenm2031 Před 3 lety +2

    Excellent

  • @navneetranjan4215
    @navneetranjan4215 Před 3 lety

    Very good content.....helpful for all...on lighter note...dogs are barking in background :-)

  • @kirushnashirre6791
    @kirushnashirre6791 Před 3 lety +3

    Please make videos on Multi-Threading, Structural Design Patterns, Behavioural Design Patterns and JEE Design Patterns.

  • @onlinetrainingacademy7684

    Good one

  • @bhaktilatadash7619
    @bhaktilatadash7619 Před 3 lety +1

    Mam u r awosome..why u r so good ..love u mam

  • @nancyagarwal8570
    @nancyagarwal8570 Před 3 lety +1

    Please make videos on
    1. Map vs flatmap
    2. Map and reduce
    3. Optional in java8

    • @CodeDecode
      @CodeDecode  Před 3 lety

      surely we will create it soon.. thanks for the suggestions

  • @preetamkumar591
    @preetamkumar591 Před 2 lety

    Nice and clear explanation 👌👌
    could you please provide us the source code for this concept?

  • @paridadeepika
    @paridadeepika Před 11 měsíci

    nice one..

  • @StudentTechnique
    @StudentTechnique Před 3 lety +1

    Nice

  • @jayakrishnathammana
    @jayakrishnathammana Před 3 lety +1

    I have a suggestion, when you are explaining a problem. Please zoom out the content as the font size is less...
    A part from that , content is as good as usual...

    • @CodeDecode
      @CodeDecode  Před 3 lety

      Sure. We have done that in recent videos. Thanks for the suggestion jayakrishna 🙂👍🙏🙏

  • @dreamyme543
    @dreamyme543 Před rokem

    understood:)

  • @start1learn-n171
    @start1learn-n171 Před 6 měsíci +1

    Tq

  • @arijitghosh88
    @arijitghosh88 Před 2 lety

    How can we use distinct on two properties ?

  • @saaiidubbings1126
    @saaiidubbings1126 Před rokem

    Hi guys any one tell me how to take lamdaexpression sybol while practicing in sts ?

  • @satishbethina123
    @satishbethina123 Před 2 lety +1

    Nice info. But plz increase font size from next videos.

  • @dibyaray5454
    @dibyaray5454 Před 2 lety +1

    Your way of explaining makes things simple and easy to understand. It's really great 👍 Thanks for all your efforts.

  • @iloradas6387
    @iloradas6387 Před 3 lety +1

    Hi your videos are very easy to understand, thank you for putting in such amazing work. Could you please create a Spring interview question series.

    • @CodeDecode
      @CodeDecode  Před 3 lety

      Hi. Thanks. It's already uploaded in playlist. Please let me know if you don't find one

    • @iloradas6387
      @iloradas6387 Před 3 lety +1

      @@CodeDecode Hi thanks for your response. I do see couple of tutorials for Spring Boots but can't find on Springs specifically. Is it part of other video?

    • @CodeDecode
      @CodeDecode  Před 3 lety +1

      @@iloradas6387 Yes we haven't made video on particularly Spring yet. But we will upload it soon . Thanks for the suggestion

  • @save2strokes593
    @save2strokes593 Před 3 lety +1

    please share the source code of java 8 features programs, thanks a lot,mam for giving such a wonderful information ....

    • @CodeDecode
      @CodeDecode  Před 3 lety

      Hi Siddesha , below is the git link for all the source code we used :
      http link : github.com/codedecode25/Java-8-demos.git
      ssh link : git@github.com:codedecode25/Java-8-demos.git
      Please clone and let me know if u are able to access the code base

  • @sandeepgattu5690
    @sandeepgattu5690 Před 3 lety +1

    Waiting for Parallel steam concepts madam please do it ASAP