Java 8 Optional Interview Questions and Answers | Optional Class| Code Decode | Part 1 |

preview_player
Показать описание
In this video of code decode we have covered Java 8 Optional class Interview Questions and Answers for freshers and experienced

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

Course Description Video :

Q) What is Optional? Why and how can you use it?
Optional Class was introduced in java 8 to to avoid NullPointerException in java.

Java 8's Benefits Optional:

Null checks aren't necessary.
NullPointerException is no longer thrown at runtime.
We can create APIs that are neat and tidy.
There will be no more. Code for a boiler plate

Subscriber and Follow Code Decode

#codedecode #java8optional #javainterviewquestionsandanswers

0:00 Introduction
1:28 Why Optional Objects
6:45 Checking Value Presence
11:45 Creating Optional Objects
Рекомендации по теме
Комментарии
Автор

Amazing content. Thankyou so much, with the help of your content I’ve cracked multiple companies interview, Currently working in Amdocs.

purvanshrastogi
Автор

Today is Women's Day and in recent times If I have felt enormous respect and appreciation for women for doing a great quality of work, you would be one of them. So I want to thank you on this Special day for creating such extraordinary content and helping learners to learn in a better way. Personally, I have learned a lot from your videos and still learning. Keep up the good work. My good wishes to the entire Code Decode team.

kaustavmandal
Автор

Thank you so much... i dont know how to express my gratitude, i have cleared Infosys, accenture, Cognizant, Deloitte, brillio having 3 years experience with TCS.
Just because of videos i got this. Thanks for this.

harishpasala
Автор

Really you are great❤
Mostly I learn from any videos or blogs, it gives me a basic theoretical knowledge like for a college students/freshers
But your videos are educating in a developer point of view
Thanks

sowndaryaravi
Автор

Your videos are very helpful in interview preparations. Thanks for sharing and looking forward to many more latest JAVA topics videos.

nehurane
Автор

Awesome example | Real-time scenario | I will definitely suggest this video to my friends.

parthpatel
Автор

Thank you so much for such a wonderful content, We use Optional classes to check NullpointerExceptions but I have doubt that instead of null check we are converting that data/value as Optional object and we are checking whether the value is there are not and then we are doing rest of the operation its almost similar like doing "NULL" checks so what is the advantage of using Optional on top of NULL checks

chaitanyajada
Автор

Nice video, Just a small point to add, Optionals in java is entirely to notify that a method can return a null or empty value and also to have some ease of null exceptions.
We must always avoid to make a local variables having Optionals as its type, it creates over head for the system with an extra wrapping of class, making more work for compilers and GC's.
Thus we must know the use case of Optionals<E>
Open for discussions

Thanks

SurajYadav-ydcu
Автор

Thank you so much for this video... Looking forward for part 2

asthagupta
Автор

Thank you so much for the videos Ma'm.
This helped me a lot in cracking my interviews.🙏

yogeshdhamne
Автор

Very well organized and relatable content, thanks a lot for your efforts :)

varunshrivastava
Автор

Awesome content. Request you to please include the second part as well 👍😎

siddharthshinde
Автор

Very helpful videos..Keep doing the great work..I have watched all your videos but I request you to please cover some more interview questions on SpringBoot.

swatikewale
Автор

Thank you very much. Very clear and practical explanation

joshinim.n
Автор

As well organised as always and thanks as always.

vengateshm
Автор

amazing explain. please upload the next part

abirchaudhary
Автор

Hello Ma'am, I follow code decode channel and your content really very useful and easy to understand the concepts. I am your Fan now😀✌️

mit
Автор

Great content Thanks..!
Small Suggestion: If the line of code is very big that it is not fully visible in screen, Please break it into 2-3 lines.
again thanks.

PoojaKewat
Автор

Please do the second part...a great video

Thanks

kleatech
Автор

Please cover advance multithreading interview questions. Thank you for providing such a valuable content

usha