No video

Java 8 Interview Questions And Answers | Consumer || BiConsumer || Supplier || Chaining (Live Demo)

  Рет қаралды 96,580

Code Decode

Code Decode

3 жыл бұрын

Java 8 part 4 New Features Interview Questions And Answers Live Demo
Udemy Course of Code Decode on Microservice k8s AWS CICD link:
openinapp.co/u...
Course Description Video :
yt.openinapp.c...
Java 8 Interview Questions Complete Playlist :
• Java 8 Interview Quest...
Consumer : It will consume Item. Consumers never return anything (never supply), they just consume.
Consumer Chaining :
We can combine / chain multiple consumers together with andThen .
There is only one ways to combine consumers:
c1.andThen(c2).apply(Input); - first c1 then c2
No compose() in consumer.
Multiple consumers can be chained together like :
c1.andThen(c2).andThen(c3).andThen(c4).apply(Inputs);
Supplier :
It will just supply required objects and will not take any input
Its always going to supply never consume / take any input.
EG : always supply me current date.
No chaining as no input is given to this. Only it gives u output.
Advantages:
Write once, use anywhere.
Code Reusability
BiCinsumer Bisupplier :
What if we need 2 arguments for operation?
Then we need Bi XYZ Functional Interfaces.
There is no input in supplier so no 1 or 2 Input arguments needed. Hence no BiSupplier.
Q) If we want to operate on 3 arguments then triPredicate?
There are no TriPredicate or TriFunction etc.
No QuadPredicate No QuadFunction.
Java 8 has inbuilt Functional interfaces that can take only 1 or 2 arguments no more.
-------------------------------------------------------------------------------------------------------------------------------------
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 : www.youtube.co...
Linkedin : / codedecodeyoutube
Instagram : / codedecode25
--------------------------------------------------------------------------------------------------------------------------------------
#Java8 #Java8Consumer #Java8Supplier #codedecode

Пікірлер: 144
@RadhaBalloo
@RadhaBalloo 3 жыл бұрын
After watching your videos, I thoroughly understand what Functional Programming is. Great Content and well explained.
@CodeDecode
@CodeDecode 3 жыл бұрын
M glad 😊. Thanks for writing back to us Nilakshi 👍
@shokoofehhoseini1068
@shokoofehhoseini1068 2 жыл бұрын
Consumer chaining has accept method not apply method. your videos are great. it really helps me in interviews! thanks Madam :)
@letscodewithshivam
@letscodewithshivam Ай бұрын
small correction at 3:43 - consumer should be using accept method and not apply. Thanks for this java playlist mam :)
@rangarajugottumukkala9380
@rangarajugottumukkala9380 2 жыл бұрын
Madam, you are showing us the in depth details. You are awesome and helping all learners. Thanks to you
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks 🙂🙂👍👍
@savitarohra3905
@savitarohra3905 2 жыл бұрын
What a real in depth knowledge u have!!! Wow! The way u explain these concepts is really amazing. You explain these confusing topics in very simple way. I was having hard time understanding these APIs using java docs. Thank you for making it easier to understand.
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Savita 👍🙂
@osamaazharazhar5167
@osamaazharazhar5167 2 жыл бұрын
0:20 What Is Consumer Functional Interface? 7:32 what is Supplier Functional Interface?
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks 🙂👍
@kasunwithanage1081
@kasunwithanage1081 2 жыл бұрын
Awesome. How simple these are. Anyone can understand theory and implementations from this Q & A. Love from SL
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks a lot Kasun 🙂🙂
@sahilbhasin2112
@sahilbhasin2112 3 жыл бұрын
thanks i have gone through all this playlist.
@CodeDecode
@CodeDecode 3 жыл бұрын
👍👍
@akshayjain3197
@akshayjain3197 3 жыл бұрын
Very nice and informative sessions.Thanks for sharing your knowledge.
@CodeDecode
@CodeDecode 3 жыл бұрын
You are Welcome....
@vishalchandel8864
@vishalchandel8864 Жыл бұрын
very good knowledge you have .thank you for making these videos
@CodeDecode
@CodeDecode Жыл бұрын
Thanks for the appreciation vishal
@ravindrasiddavatam1097
@ravindrasiddavatam1097 Ай бұрын
Very good explanation👌
@CodeDecode
@CodeDecode Ай бұрын
Thanks
@bhuwantripathi2707
@bhuwantripathi2707 2 жыл бұрын
I am watching your videos for Java 8 interview and I am not able to stop myself from this playlist and surely I will cover complete playlist in few hours... Nicely explain Can you please also share the document on Google drive?
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Bhuwan. Everything that's in ppt is in description below. Slides do have content that can give us copyright issues, that's why we can't share the slides. Sorry for inconvenience Bhuwan. Is there any other way we can help you?
@manishamulchandani1500
@manishamulchandani1500 3 жыл бұрын
Awesome channel with awesome Explanation .
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks
@aruhiayaanreddy8613
@aruhiayaanreddy8613 2 жыл бұрын
small correction in document for consumer chaining you added c1.andThen(c2).apply(input)...here its not apply it should be accept method.😊
@bhavinjani9338
@bhavinjani9338 3 жыл бұрын
Thank you so much for your great efforts.... Ur lactur series are excellent...... Keep it up....👏👏👏👏👏
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks 👍😊
@Deepakkhabale
@Deepakkhabale 2 жыл бұрын
Thank you for making all the useful content
@CodeDecode
@CodeDecode 2 жыл бұрын
You're welcome Deepak
@josnadsouza6351
@josnadsouza6351 3 жыл бұрын
Please add streams and parallel streams tutorial..All the java 8 features u have covered well it was very much helpful in understanding these concepts...thank u..
@CodeDecode
@CodeDecode 3 жыл бұрын
Will upload them very soon 👍👍
@ravindrasiddavatam1097
@ravindrasiddavatam1097 Ай бұрын
yeah, that will be great.
@sajalmathur549
@sajalmathur549 3 жыл бұрын
Thanks for sharing your knowledge and providing us excellent content. Please upload last remaining topic stream and also biconsumer example in that part. Waiting for it... Try to upload it in 1-2 days as currently i am in flow of learning.
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure will try to upload twice. 👍
@siddharthshinde8869
@siddharthshinde8869 3 жыл бұрын
Awesome content really helpful. Takes lot of dedication and passion to upload such videos.
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Siddharth 👍👍. All the hard work pays off with such comments. Thanks 🙏🙏
@maiankithun
@maiankithun Жыл бұрын
bahut badhiya...
@CodeDecode
@CodeDecode Жыл бұрын
🙂🙂👍👍
@sahilbhasin2112
@sahilbhasin2112 3 жыл бұрын
just small mistake , in theory slide it should have written accept method instead of apply method for Consumer interface.
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks for bringing this to notice. Will see the video again and make required changes if necessary . Thanks 👍
@anandbabu9219
@anandbabu9219 2 жыл бұрын
ur videos mean alot to me mam, I am able to crack mutltiple interviews
@CodeDecode
@CodeDecode 2 жыл бұрын
Congratulations for new job Anand 👍👍keep learning keep rocking
@lordgreat6051
@lordgreat6051 2 жыл бұрын
Such great explanation thanks mam!
@CodeDecode
@CodeDecode 2 жыл бұрын
you're welcome
@priyankasundar3497
@priyankasundar3497 Жыл бұрын
Awesome❤
@CodeDecode
@CodeDecode Жыл бұрын
Thanks Priyanka 😊👍
@mercurialvibesbykanikajind1677
@mercurialvibesbykanikajind1677 2 жыл бұрын
Thankyou dear 💕💕
@CodeDecode
@CodeDecode 2 жыл бұрын
You're welcome
@arjun9059
@arjun9059 10 ай бұрын
Amazing explanation
@CodeDecode
@CodeDecode 9 ай бұрын
Thanks
@jayantamandal9732
@jayantamandal9732 3 жыл бұрын
Thanks for the video.Really useful.Please also upload the java coding videos on regular basis
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍
@priyankasundar3497
@priyankasundar3497 Жыл бұрын
Consumers and supplier concepts we need ❤
@CodeDecode
@CodeDecode Жыл бұрын
Sure
@nalinashekar4134
@nalinashekar4134 3 жыл бұрын
Hi Thanks for your effort, i can understand java 8 features very easily from ur playlists. can I have code base for the same(the example code which u have used in demo) can you please share git path to access the same??
@prernagolani9014
@prernagolani9014 Жыл бұрын
Nicely explained thx for making the videoo
@CodeDecode
@CodeDecode Жыл бұрын
you're welcome prerna
@S_Crypto
@S_Crypto 3 жыл бұрын
Thankyou So much . bless you 👍
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks 👍
@kazaasekhar
@kazaasekhar 3 жыл бұрын
excellent thank you
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks Sekhar 👍
@start1learn-n171
@start1learn-n171 6 ай бұрын
Tq
@CodeDecode
@CodeDecode 6 ай бұрын
No problem 👍👍
@sreedharsree361
@sreedharsree361 3 жыл бұрын
@3.54 consumer chaining it should be consumer abstract method accept r8.. instead of apply ? Pls clarify
@sujithsunny1444
@sujithsunny1444 3 жыл бұрын
Very helpful.
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks
@raunakthorat7023
@raunakthorat7023 2 жыл бұрын
Does BiFunction or BiPredicate or BiConsumer support chaining concept?
@CodeDecode
@CodeDecode 2 жыл бұрын
Yes they do. But bi supplier is not a concept.
@CodeDecode
@CodeDecode 2 жыл бұрын
We have created videos on that too. U can check them out too
@25ravidixit
@25ravidixit 3 жыл бұрын
great videos
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks 👍
@sairamsankaramanchi3678
@sairamsankaramanchi3678 3 жыл бұрын
This entire playlist was very helpful. Could you please help us by doing a similar thing on Java 11 features?
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Sairam 👍👍
@LKJHA-sg4cf
@LKJHA-sg4cf 3 жыл бұрын
Hi your all vdo is excellent..one request is try to put your all code in categories in github and share link to corresponding vdo
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure 👍👍that's a very nice idea 👍👍
@AmeyaNanarkar76625
@AmeyaNanarkar76625 3 жыл бұрын
Very much helpful !!
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks 👍
@muralimohan4035
@muralimohan4035 3 жыл бұрын
Superb Mam
@CodeDecode
@CodeDecode 3 жыл бұрын
👍👍 Thanks
@amarthyaseshu683
@amarthyaseshu683 3 жыл бұрын
Merci dvoir partge!
@CodeDecode
@CodeDecode 3 жыл бұрын
vous êtes le bienvenu
@shubhamnayak668
@shubhamnayak668 3 жыл бұрын
Thanks a lot
@CodeDecode
@CodeDecode 3 жыл бұрын
😊👍
@timmy8299
@timmy8299 2 жыл бұрын
awesome work, keep it up mam
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Amit 🙂
@gaurav1992100
@gaurav1992100 3 жыл бұрын
Well explained!!
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks 👍
@aditiAgrawal24
@aditiAgrawal24 Жыл бұрын
in consumer chaining what ll be the 3rd output it will be 50 right?
@nagar4u
@nagar4u 3 жыл бұрын
Some more on SpringBoot Interview questions please
@CodeDecode
@CodeDecode 3 жыл бұрын
sure will upload soon...
@moulik9263
@moulik9263 3 жыл бұрын
Hi Code Decode, Excellent videos Please cover stream concept as soon as possible we are more interested to see your videos
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure will upload this soon 👍👍
@shirshakghimire
@shirshakghimire 3 жыл бұрын
your videos are great. I also liked 5 5 ja 25 ;)
@akshitajain5292
@akshitajain5292 3 жыл бұрын
Very helpful video. Can you please upload video on Optional class too?
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure Akshita, we will upload them too
@Aks-gj1kp
@Aks-gj1kp Ай бұрын
java8 dont have tri or quad etc by default , i dont know why they even have bifunction , you can simply create, bi , tri, quad or so on by just passing another function as the return type for example Function func=a->b->c->a+b+c; System.out.println("tri function: " + func.apply(1).apply(2).apply(2));
@manojyadavofficial8535
@manojyadavofficial8535 3 жыл бұрын
Thanks for this video :)
@CodeDecode
@CodeDecode 3 жыл бұрын
Your welcome 👍
@kosireddigangadhar7182
@kosireddigangadhar7182 Жыл бұрын
Will you please make a video on DOCKER. ...
@CodeDecode
@CodeDecode Жыл бұрын
Sure we will do that 👍👍
@DKRamnani
@DKRamnani 2 жыл бұрын
Good videos but I have noticed in many of your videos that some sort of background noise creeps into the video like vibrations of your phone etc. Please work on such things as they ruin the whole experience of watching the video and learning the concepts as it is too much disturbing specially the phone vibration noise. Other than that great videos and excellent work!
@CodeDecode
@CodeDecode 2 жыл бұрын
True Dinesh. We have worked on it. Now it is fixed in recent videos🙂👍
@piyushavarshini1176
@piyushavarshini1176 3 жыл бұрын
Cover more concepts in a single long video, that way we can learn all concepts together without waiting.. they’re very helpful..
@CodeDecode
@CodeDecode 3 жыл бұрын
Hi Piyusha, I apologise for the issue that you are facing. We are well aware of that but I am an IT professional working in an MNC at post. We have tasks to be completed every days. Creating videos , shooting them, creating demos takes time and it's difficult for me to spare that long time at a stretch I appreciate your patience. Thanks for understanding this and still standing with us. I will try my level best to increase the frequency of videos. Thanks for the suggestion. 👍👍
@Ravikumar-gj6qw
@Ravikumar-gj6qw 2 жыл бұрын
Can u explain how to use static method Identity() available in Function functional Interface plz
@joejones5746
@joejones5746 3 жыл бұрын
Can I use the following ? : Supplier sample = ...... where Employee is the class and I want return type of Employee list ?
@CodeDecode
@CodeDecode 3 жыл бұрын
Why not. It supplies, it can supply anything. You can create new employee objects and then create list and return it
@ManvendraSingh-xh2ry
@ManvendraSingh-xh2ry Жыл бұрын
In consumer ppt you have used apply() for input whereas it should be accept () I guess, please correct me if im wrong
@harshadramekar
@harshadramekar 3 жыл бұрын
Could you please add multithreading interview questions for 6+ years experience ?
@CodeDecode
@CodeDecode 3 жыл бұрын
Sure :)
@abhijeetw693
@abhijeetw693 Жыл бұрын
Is Function and consumer both are FI? m i right?
@CodeDecode
@CodeDecode Жыл бұрын
Yep
@laxmikundrapu9935
@laxmikundrapu9935 2 жыл бұрын
Mam..is there any classes to join for live training
@CodeDecode
@CodeDecode 2 жыл бұрын
currently we don't have any live classes but whenever it will happen we will let you know surely
@thanipattavan
@thanipattavan 6 ай бұрын
@16.48 😂😂
@CodeDecode
@CodeDecode 6 ай бұрын
🫣
@shubhR00ks
@shubhR00ks 3 жыл бұрын
Mam, please cover stream as early as possible.
@CodeDecode
@CodeDecode 3 жыл бұрын
Will upload soon 👍
@nishikantabehera2065
@nishikantabehera2065 3 жыл бұрын
Excellent explain...
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks 👍☺️
@dindips
@dindips 2 жыл бұрын
Do you have any github link for Java 8 interview question?
@diponsinha5082
@diponsinha5082 3 жыл бұрын
Waiting for Multithreading interview Question and answer...........
@CodeDecode
@CodeDecode 3 жыл бұрын
sure will upload soon .....
@diponsinha5082
@diponsinha5082 3 жыл бұрын
@@CodeDecode Thank you ...................
@provashs4010
@provashs4010 3 жыл бұрын
@@CodeDecode Hello Mam,Any update on multithreading interview questions...still i am waiting....
@sreeram543
@sreeram543 3 жыл бұрын
Do for streams
@CodeDecode
@CodeDecode 3 жыл бұрын
Will be uploaded tomorrow positively 👍
@sreeram543
@sreeram543 3 жыл бұрын
@@CodeDecode thank u so much and also .. in core java i dont see type of classes .. in micro services circuit breaker .. and spring features in one video like ioc, point cut ... etc
@swapnilnagare336
@swapnilnagare336 Жыл бұрын
rt means
@aishurajas2507
@aishurajas2507 Ай бұрын
Consumer chaining has accept method, not apply method. Please correct that part in video. You might be written apply in consumer chaining by mistake
@kosireddigangadhar7182
@kosireddigangadhar7182 Жыл бұрын
Hi ma'am I am feeing very bad ....??? Why means I am fully waste of my time to following other channels.
@CodeDecode
@CodeDecode Жыл бұрын
Haha we will take that as a compliment. Don't feel bad. If you are browsing code decode means you are hear to learn. First step is taken Man. You are doing great. Keep learning keep shining Man ⭐✨⭐✨⭐✨
@jai8548
@jai8548 3 жыл бұрын
upload the part -5 for java 8 interview questions
@CodeDecode
@CodeDecode 3 жыл бұрын
video will get uploaded by tomorrow......
@jai8548
@jai8548 3 жыл бұрын
Tq iam eagerly waiting
@anilrouto4513
@anilrouto4513 3 жыл бұрын
When will u be uploading the next video on stream and parallelStream?
@CodeDecode
@CodeDecode 3 жыл бұрын
Tomorrow it will be uploaded 👍
@aravindbadavath7369
@aravindbadavath7369 3 жыл бұрын
Yeah can you upload it soon. Seems very helpful and lot of knowledge with practical example❤️
@CodeDecode
@CodeDecode 3 жыл бұрын
@@aravindbadavath7369 it's live now you can check it .....
@dpyecherla9763
@dpyecherla9763 Жыл бұрын
source code please ..
@baradasahoo3068
@baradasahoo3068 4 ай бұрын
you keep on sounding much, mind is disturbed in hearing you more than understanding concept
@venkatb8317
@venkatb8317 2 жыл бұрын
@FunctionalInterface public interface MultipulParameter { R appaly(A a,B b,C c); } public class PredicateTest { public static void main(String[] args) MultipulParameter sqir=(a,b,c)->(a+b+c); System.out.println(sqir.appaly(12,13,14)); } }//39 just i tried, FYR............
@barikchandan7963
@barikchandan7963 3 жыл бұрын
Superb mam
@CodeDecode
@CodeDecode 3 жыл бұрын
Thanks 👍
Кадр сыртындағы қызықтар | Келінжан
00:16
小蚂蚁被感动了!火影忍者 #佐助 #家庭
00:54
火影忍者一家
Рет қаралды 52 МЛН
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 50 МЛН
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 817 М.
Кадр сыртындағы қызықтар | Келінжан
00:16