Optional Class in Java 8 - Avoid Null Pointer Exception | Java 8 Features | Crash Course ✅

  Рет қаралды 19,808

Java Guides

Java Guides

Күн бұрын

Java introduced a new class Optional in JDK 8. It is a public final class and is used to deal with NullPointerException in Java applications.
The purpose of the class is to provide a type-level solution for representing optional values instead of using null references.
Advantages of Java 8 Optional
- Null checks are not required.
- No more NullPointerException at run-time.
- We can develop a clean and neat APIs.
- No more Boilerplate code
Java Lambda Expressions | Java 8 Features | Crash Course ✅ at • Lambda Expressions in ...
Java Functional Interfaces | Java 8 Features | Crash Course ✅ at • Functional Interface i...
Java Method References | Java 8 Features | Crash Course ✅ at • Method References in J...
Java Optional Class | Java 8 Features | Crash Course ✅ at • Optional Class in Java...
Java 8 Stream API Tutorial | Examples | Crash Course ✅ at • Java 8 Stream API Tuto...
Java 8 Tutorial | Java 8 Features in One Video | 4 Hours Full Course 🔥 at • Java 8 Tutorial | Jav...
Complete Java 8 Tutorial at • Java 8 Tutorials
#java #java8 #javaguides

Пікірлер: 13
@сойка-и8й
@сойка-и8й 2 жыл бұрын
Sir the way you also get into source code of Java method helps a lot to understand functionality more clearly. .Request you to please make video on completablefuture also
@ReetSaluja23
@ReetSaluja23 2 ай бұрын
Great explanation
@meenajadhav5533
@meenajadhav5533 2 жыл бұрын
Beautifully explained. Understood lot of stuff.
@Marco-gb2es
@Marco-gb2es 11 ай бұрын
god bless you , amazing explanation 🙏
@raneshkapoor4575
@raneshkapoor4575 2 жыл бұрын
Great explanation. Do you have any video for transferring images in REST?
@pandur871
@pandur871 2 жыл бұрын
keep up the good work Ramesh✌
@Sunshine-oh8pl
@Sunshine-oh8pl 2 жыл бұрын
Very very nice explanation sir...
@sahilgandhi9156
@sahilgandhi9156 Жыл бұрын
Thank you Sir
@javatechnology4481
@javatechnology4481 2 жыл бұрын
As always best 👍
@kpranay9710
@kpranay9710 Жыл бұрын
U deserve more subscribers
@jagadeesh8751
@jagadeesh8751 2 жыл бұрын
Super bro. But, Optional didnt solve tha multiple null check in single condition though. We could use it only for compound operation right?
@nguyenthanhnhut4304
@nguyenthanhnhut4304 8 ай бұрын
*thanks sir*
@sandyj342
@sandyj342 5 ай бұрын
Null Pointer "Crash" course 😜
Java Functional Programming | Full Course
2:22:15
Amigoscode
Рет қаралды 570 М.
He bought this so I can drive too🥹😭 #tiktok #elsarca
00:22
Elsa Arca
Рет қаралды 62 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 211 МЛН
Optionals In Java - Simple Tutorial
15:53
Coding with John
Рет қаралды 211 М.
JDK8 Stream API (Complete Course) | By Mr. Suman
2:27:19
SreenuTech
Рет қаралды 24 М.
Spring Boot + Angular Full Stack | Full Course [NEW] ✅
3:14:49
Java Guides
Рет қаралды 476 М.
Object Oriented Programming with Python - Full Course for Beginners
2:12:35
freeCodeCamp.org
Рет қаралды 1,8 МЛН
Design Patterns Master Class | All Design Patterns Covered
3:46:08
Daily Code Buffer
Рет қаралды 62 М.
Spring Boot React Full Stack | Full Course ✅
3:20:33
Java Guides
Рет қаралды 387 М.
Functional Interfaces in Java | Lambda Expressions in Java | Dilip Singh
55:20