Java Optional and null - Concepts, Design and Practice

Everything you ever wanted to know about null and Optional and more

Ratings: 4.60 / 5.00




Description

This is an in-depth look at a truly fundamental concept in Java programming - 'null' and how Optional, if used properly can address many of the issues associated with null.


Some of the questions I answer include:


Is null a bad concept or is the implementation that's the problem?

How to prevent NullPointerExceptions?

How and when should Optional be used?

What are the alternatives to Optional?

What are some key design considerations in regards to null in my application?

What are other fundamental null concepts such as the Null Object Pattern etc?

How do some other languages handle null?


I hope that by the end of the course you will have a solid understanding of what null really is so you can design and develop your applications with confidence. I want to remove those nagging doubts you may have about null.


I'm hopeful that you will have a really strong understanding of how Javas Optional can help to deal with some of the issues surrounding null and also understand how it interplays with Streams. This is often what causes a lot of the confusion. However by understanding a few core concepts I believe this can be a thing of the past and you can use these tools in the best way possible.




What You Will Learn!

  • A deep understanding of null and Optional in Java
  • A very strong understanding on how to design for null in your application
  • How to use Optional and a host of other approaches to deal with particular null use cases
  • How to spot common mistakes that are made when using Optional
  • How to spot common design mistakes when working with null

Who Should Attend!

  • Beginner Java developers
  • Programmers interested in null
  • Software developers and architects interested in designing for sensible null handling
  • Experienced Java developers
  • Java tech leads