Java 8 new features || Java 8 Interview Questions and Answers ( Live Demo with Examples )
Вставка
- Опубліковано 30 гру 2020
- In this video, you'll learn about Java 8 new features and Java 8 Interview questions and answers and explanations with live demo and working examples
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...
There are lots of new features which were added in Java 8. Here is the list of important features which are mostly asked as java 8 interview questions:
Lambda Expression
Stream API
Default methods in the interface
Functional Interface
Optional
Method references
Date API
Nashorn, JavaScript Engine
Main advantages of using Java 8?
More compact code
Less boilerplate code
More readable and reusable code
More testable code
Parallel operations
Interview question on java 8 Lambda expressions is a very commonly asked question :
Lambda expression is an anonymous function ( without name, return type and access modifier and having one lambda symbol )
Functional interfaces are those interfaces which can have only one abstract method .
It can have static method, default methods.
There are many functional interfaces already present in java such as eg : Comparable, Runnable
How lambda expression and functional interfaces are related?
Lambda expressions can only be applied to abstract method of functional interface.
As we know Functional interface is an interface with Exactly One Single Abstract method and can have multiple Static or default methods.
To create our own Functional interface, You can do following steps:
Create An interface
Annotate that with @FunctionalInterface.
Define exactly one Abstract method.
There is no restriction on number of static and default methods defined in such and interface.
Java can implicitly identify functional interface but still you can also annotate it with @FunctionalInterface . It just give you the security that in case if u by mistake add 2 abstract methods then Compiler will throw compile time error.
Method Reference :
EG : MethodReferenceDemo and FunctionalInterfaceDemo
Method reference is replacement of lambda expressions. It is used to refer method of Functional interface to an existing method. Mainly it is used for code reusability.
Functional Interface’s Abstract method can be mapped to specific existing method using double colon operator (::) . This is Method reference.
Hence Method reference is an alternative to Lambda expressions.
Whenever we have existing Implementation of Abstract method of our Functional interface then we can go for method reference. If no such method like testImplementation() is available then go for lambda expressions.
-------------------------------------------------------------------------------------------------------------------------------------
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 : ua-cam.com/users/CodeDecode?...
Linkedin : / codedecodeyoutube
Instagram : / codedecode25
--------------------------------------------------------------------------------------------------------------------------------------
#JAVA8 #JAVA8InterviewQuestions #JAVAInterviewQuestions #codedecode
Top Notch Videos...Showing Implementation along with the presentation is the best thing I like about your videos.
Yeah it's important to understand how to implement too 😊
you guys helped me a lot in my interviews . Never ever stop this . Its gold
Hi Mam
I have cracked interview with respected service company and your videos are really helped me lot.
Thanks you so much.
Many congratulations Karthik. 🎊🎊🎊🎊 keep learning keep growing 👏👏👏👏
Thanks 😊
Probably the best video on Java 8 new features.
Perfectly explained each and everything with excellent communication skills 👏.
YOU ARE A GEM TRAINER 💎
Thank you so much for your video contributions…. I’m the one who commented earlier that I’m watching your video like Illayraja music… now I’m happy to share that I cracked and have offers with 2 companies…. Graduated as computer engineer recently… but cracking interviews are something beyond what we learn…. Thank you thank you thank you so much 🙏🏻🙏🏻🙏🏻
Many congratulations Anu 🎊🎊🎊🎊you deserve it all. Good job 🙂🙂🎊🎊🎊
Form 18:14 to 18:39. the moment when I can't resist hitting the like button :) nicely explained Method reference.
Thanks Rohit 🙂👍
This video is very helpful to brush-up the Java 8 features. Kudos to the instructor and team, very simple and good presenation.
Thanks Sreehari 🙂👍
I want to see the picture of a great lady who explains these videos very clearly. give big applause
Thanks Venkatesh. We are same people like you Man. Just with some little IT experience. Will be Glad to connect with you any time 👍.
@@CodeDecode thanks
😊😊
Thank you so much for explaining the difference between Lambda & method reference clearly, i was waiting for this type of explanation for so long. thank you :)
We are glad that it helps 👍👍 thanks for writing back to us Kiranmai 🙏🙏
Thanks for sharing the knowledge with millions around the globe. I am really impressed with your way of teaching and knowledge on the subject. Detailed explanations and straight to the point, and with practical examples/implementations. I have watched all the videos in this playlist and learned so many new concepts.
Thanks a lot Man🙏🙏Means a lot to us 🙂
Thank you so much for giving these concepts easily in hand. Finally today I understood method reference which was never clear before .
Glad to hear that 🙂🙂👍👍
Ma'm i would really like to thank you from the bottom of my heart .This is increasingly helping me in gaining my confidence for the interview. Please keep uploading .
Sure Shubham. 👍👍 Thanks for the motivation. These comments helps us in keep posting more videos 👍 thanks 🙏
I would like to thank for the amazing work of yours and it would be so helpful if you have added a video only on the java 8 features involving the implementation for predicate biconsumer and all other with detailed explanation.
Thanks....!!!
Sure kalyan we will add java 8 coding videos soon....
Extremely helpful and one of the most important channels on youtube 👍🏼👍🏼👍🏼👍🏼
Thanks Ashwini for the nice words...
No words...Covered much with clear explanation in less time
Thanks Pradeep 🙂👍
A very good tutorial about Lamda expressions!!! I couldn't understand them till this video! Please provide a special video for the functional interfaces!! Thanks! Good luck! :)
Sure will upload soon 👍
I just wait for it! :)
👍👍
Hi , just started following your videos, want to complement you, your way of explanation is very crisp and clear which helps in understanding very quickly.
Thanks Shubhi. This means a lot to us 🙏👍🙂🙂
You are extremely good. These videos are helping us to understand basic concepts. A big thank you to you and your team. Request you to make videos on multithreading, microservices, sql querries interview questions.
Sure next video will be on few of your topics 👍
Without Bioconsumer functional interface this will not print the values of a and b? Means we have to use everytime when we are dealing with lambda functions
Thank you so much...
This is really helpfull for interview.
Egarly waiting for the second part...
Will upload soon 👍
You are an amazing tutor... Thanks for the clear explanation 🤗
Thanks Aksh 👍👍
Hello, what is the use of the introduction of default and static methods in functional interface in java 8? Can you explain it with an example?
Thankyou so much for taking time and explaining in such detail. Anyone can learn programming if teachers like you are here :)
Thanks a lot for your kind words Deepika ❤️❤️ means a lot🙂🙂
wow....very good explanation with practical examples for Most Frequently asked Java 8 interview topics...Thanks for creating such a innovative video...its really helpful!!!
Thanks for writing back to us Raj 👍
I must say you have excellent teaching skills and you are awesome teacher, Thank you so much for making such helpful video🙏
Thanks a tonn Rajesh 🙂👍
@@CodeDecode You're welcome 😇
very nicely explained with demo...clearly understood without referring any other links
Thanks Darshan 🙂👍
The videos are vey interesting to watch. Explanation is outstanding. Thanks a lot, I am sure it's helping many viewers like me. God bless you and your family 🙏.
Thanks Sanjeev. We Wish the same for you and your family too. Keep learning keep Shining Man ⭐✨
Thank you mam for simplifying concept with wonderful explanation....
Thanks for the nice words 👍
Thank You so Much for making this video's mam... Really usefull
Thanks for the nice words
Big fan of this channel.. Excellent videos in simple language!! Thanks
Thanks for the nice words ......
Really impressive and able to understand clearly. Thanks lot for making this video.
You are welcome Karthik....
Recently had an interview...
And you know most of your videos covers the question he asked me..
Thanks Sahil. 👍. All the best for your interviews . We hope you land at your dream job really soon 👍👍
The video is super helpful! Can you please provide slides, for reference? Thanks.
Nice explanation.....even if we dont have any idea of that concept but while watching your video we got the all knowledge and we can explain more in interview as well .....thanks for this kind of work
Thanks Shilpa 🙂
Omg I have watched 20m video feels like 2m very interesting superb expalination thank you very much for creating such quality content 😃
Thanks Mahendra 🙂👍
Hi you are done amazing job ,it helps alot ,can you please make videos on radish queue,Kafka,JWT,Elastic search and executor framework
Hi Team...You guys are explaining every topic very well and I cleared the interviews in reputed company, This videos are helped me alot, Thank you so much!!
Many many congratulations on clearing your interviews 🎉🎉 keep learning keep shining, 🌟🌟
Hi, Please make a video of Java 8 tutorials for basics.. Thank you in advance
You are doing great work ,, these videos helped me a lot to understand the basics.
Wonderful videos which explains practically. Please make more videos on Java 8 followed by spring boot.
Sure 👍👍
Thank you so much for such a nice video, will be waiting for the upcoming video✌️✌️
sure I will upload soon
what a nice tutorial I like it
really like the way of combining the concept and the coding
thank you so much for your time and effort.
Thanks belaid for the nice words
Extremely helpful and one of the most important channels on youtube. can we get this ppt or any pdf for all combined questions?
Hi,
Your all videos Are clearly explained!! Thank you soo much for your effort!! Please make a video on serialization and deserialization !!
Sure 👍👍it's a very nice topic. We will soon make the video on that
Do we have static method inside interface pre Java 8 ?
Thanks alot, you really helped us to revise things quickly
You're welcome Uma....
Hey! I just found your channel and subscribed, love what you're doing! Particularly, I like how clear and detailed your explanations are as well as the depth of knowledge you have surrounding the topic! Since I run a tech education channel as well, I love to see fellow Content Creators sharing, educating, and inspiring a large global audience. I wish you the best of luck on your UA-cam Journey, can't wait to see you succeed!
Your content really stands out and you've obviously put in so much thought into your videos! I applaud you for that and really wish you the best for the future!
Cheers, happy holidays, and keep up the great work :)
All the best to you too 👍. Glad to hear from you. Thanks for the nice words.
Happy weekend and Happy Holidays 👍
@@CodeDecode Thanks, you too!
Nice content and wonderful presentation.. Thank you so much.
Happy New Year In Adavance
Thank you. And Happy New Year to you too 🎊
Please create second part for remaining points..as this video contents are super useful thank you :)
Thanks. Sure will upload soon
That's great . It is a unique teaching style form others. I got so many concept which is really I don't no . Please mam upload new video which is really helpful for us. Thank u so much mam . God always gives u happy .
Thanks Abulaish 🙂👍
Hello Mam, The video is great.. i just have one doubt.. you have used compareTo() method with Comparator. Is that correct? because as per my knowledge, compareTo() is comparable's method.
Thank you mam.You explained it very well and many doubts are cleared.
M glad it did. 🙂. Thanks for writing back to us.
hello, your videos are amazing. I also advise your videos to my friends.do you prepare someone specifically for an interview? or do you know anyone who provides this service? looking for a tutor about it just for interview?
Well explained and you have put great efforts. Thanks
You are an amazing tutor... Thanks for the clear explanation
Thanks a tonnn 🙂👍
if creating Lambdademo obj then we can call this methods from outside class for passing values multiple what about Bifunction lambda we cann't reuse rite
Very clear and simple explanation ... thanks a ton for such amazing tutorials..
Thanks Parth 🙂🙂👍👍
wich vide do you have the optional explanation?
Hi Firstly Thanks for the video. I have a doubt.
Class Test is not implementing FunctionalInterfaceDemo then how come class Test providing implementation using method reference to FunctionalInterfaceDemo single abstract method?
Hi,
Thank you very much for providing these types of videos.
Thanks Vivek 🙂👍
Ma'am I have a doubt you told that functional interface was introduced in java 8 so when marker interface was introduced? And what is need of both in java?
Thanks a lot madam for this video ..pls make videos on end to end ..i want to learn more from you 🙏
Sure I will complete this series soon. 👍
Thanks for such a details explanation. Video is very helpful
Thanks👍
Appreciate the quality content and the effort you put in, I suggested to my colleagues as well. Organizing into playlist would help users and also the channel gain more users for sure.
Agreed Ram. It needs sorting. Thanks for pointing it out
Wonderful Explanation. Keep rocking. Crystal clear.
Thanks 🙂🙂
I should have watch this video a day before... I have lost tcs interview today because of this Java 8😔.......thank you for creating this wonderful video explaining all the features of Java 8.
It's never late Manshad. Keep learning n m sure u will crack your dream company. Don't be disheartened. Some thing good, something big must be preserved for u. All the very best 👍👍🙂🙂
Thanks a lot, Ma'am for sharing your knowledge. It would be great if you create the cover entire JAVA8 concept.
Hi, Most of the videos are already created
Please refer to below link :
ua-cam.com/play/PLyHJZXNdCXsdeusn4OM33415DCMQ6sUKy.html
Good examples with Nice explaination!!
Please share the above ppt also. so that we can refer all the questions at a time.
please keep this videos in a playlist - else we will loose some topics.
Playlist has already been created please refer below link :
ua-cam.com/video/oUdENE7ljjw/v-deo.html
Very good lecture learnt a lot. Thank you very much!!
Thanks Pavan 👍🙂
very nice ..feeling so grateful watching ur vdos, thanq so much
❤️
your video is such a helpful and amazing 😍 and a very clear. can u create a end to end tutorial on java 8 topics. It will help us to gain more knowledge. Very great thanx to u.
Hi, thanks for very clear explanation, it is useful even for beginners....
Thanks 🙏🙂👍👍
your content is really helpful. please make sure to arrange the videos in sequential order.
Sure 👍
Very nice explanation, thank you very much.
Thanks 🙂👍
Thanks for your detailed explanation. I am requesting you to make complete Java8 features with real time scenarios.
Here you go Yash
ua-cam.com/play/PLyHJZXNdCXsdeusn4OM33415DCMQ6sUKy.html
You are great! you teach very well😌🙏🏻 thank you from all of us
Thanks a lot Sherlin 🙂👍
you are morveles.thank you so much for valuable information.
Thanks 🙂👍👍
Awesome explanation and demo.Really you made it looks simple.....keep teaching and inspiring us.....
Thank you so much
Very useful. Thank you very much🙏
Thanks 👍
getting error as Test is already defined. I have imported java.util.stream; Anything wrong?
Very nice explaination
Very well explained. Please make a video for Java 8 features, it will be helpful for many of us. Thanks a lot.
ua-cam.com/play/PLyHJZXNdCXsdeusn4OM33415DCMQ6sUKy.html
Very good and undertandable video. I like that you are very detailed.
Thanks 🙏
Please share your link for spring boot second video ..can u please create which contains more detail under spring boot questions and answers
Thank you so much ma'am..its really helpful!!
thanks 👍👍
Simply awesome tutorial. Nice demo 👍
Thanks Retheesh 🙂👍
Mashallah Great !! Please continue this
May god bless you
Thanks Bushra. 🙂
ua-cam.com/play/PLyHJZXNdCXsdeusn4OM33415DCMQ6sUKy.html
Thank u so much mam .....u r really doing the great job ....👍👍
Thanks for the nice words 👍
Thank you ma'am for such beautiful videos
Welcome :-)
Very helpful, Thanks
We can make the add method static. Then object is not needed. Or use dependency injection. Ofc lambda is still shorter
Thanks for the videos. please upload 2nd part
Sure will upload soon 👍
Wooh great , amazing , fabulous , well explained 🥳 Thank you 😌
Thanks Tushar 🙂👍
It's Eureka moment. It's eye opener tutorial. Great great🔥🔥🔥🔥👍👍👍👍👍👍👍👍👍👍🙏🙏🙏🙏🙏🙏
Thanks Suraj 👍👍🙂🙂
thank you mam...create whole series on this topic
Sure 👍
Awesome explanation really simple and precise explanation .
Thanks👍
Hi what is meaning functional programming in java?
Not able to do method refrencing its showing Syntax error, insert "IdentifierOrNew" to complete ReferenceExpression
Syntax error, insert ";" to complete BlockStatements
This is super helpful..Thank You
Thanks Asim 🙂🙂
Hi,
You will explain very convenient way to understand the topics
can you please give us your time to understand the java 17 features, pls create a video for JAVA 17 Features Tutorial
Waiting...
Sure 👍👍
Thanks a lot hats of for your time and effort.
Please make a video on use of Optional and parallel streaming in detail.Big thanks again really counting on your videos.
Sure Siddharth, we will create video on that soon 👍👍