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

preview_player
Показать описание
Java 8 part 4 New Features Interview Questions And Answers Live Demo

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

Course Description Video :

Java 8 Interview Questions Complete Playlist :

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:

No compose() in consumer.

Multiple consumers can be chained together like :

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

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

--------------------------------------------------------------------------------------------------------------------------------------
#Java8 #Java8Consumer #Java8Supplier #codedecode
Рекомендации по теме
Комментарии
Автор

Consumer chaining has accept method not apply method.

your videos are great. it really helps me in interviews! thanks Madam :)

shokoofehhoseini
Автор

After watching your videos, I thoroughly understand what Functional Programming is. Great Content and well explained.

RadhaBalloo
Автор

small correction at 3:43 - consumer should be using accept method and not apply. Thanks for this java playlist mam :)

letscodewithshivam
Автор

Awesome. How simple these are. Anyone can understand theory and implementations from this Q & A. Love from SL

kasunwithanage
Автор

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.

savitarohra
Автор

Madam, you are showing us the in depth details. You are awesome and helping all learners. Thanks to you

rangarajugottumukkala
Автор

Thank you so much for your great efforts.... Ur lactur series are Keep it up....👏👏👏👏👏

bhavinjani
Автор

Awesome content really helpful. Takes lot of dedication and passion to upload such videos.

siddharthshinde
Автор

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.

sajalmathur
Автор

Very nice and informative sessions.Thanks for sharing your knowledge.

akshayjain
Автор

your videos are great. I also liked 5 5 ja 25 ;)

shirshakghimire
Автор

thanks i have gone through all this playlist.

sahilbhasin
Автор

Awesome channel with awesome Explanation
.

manishamulchandani
Автор

very good knowledge you have .thank you for making these videos

vishalchandel
Автор

Thank you for making all the useful content

Deepakkhabale
Автор

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

nalinashekar
Автор

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

josnadsouza
Автор

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?

bhuwantripathi
Автор

Thanks for the video.Really useful.Please also upload the java coding videos on regular basis

jayantamandal
Автор

This entire playlist was very helpful. Could you please help us by doing a similar thing on Java 11 features?

sairamsankaramanchi