Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Java Optional and null - Concepts, Design and Practice
Rating: 4.6 out of 5(12 ratings)
132 students

Java Optional and null - Concepts, Design and Practice

Everything you ever wanted to know about null and Optional and more
Created bySyed Asghar
Last updated 12/2021
English

What you'll 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

Course content

5 sections41 lectures4h 19m total length
  • Welcome1:41
  • Introduction4:31
  • Null Concepts1:58
  • Null Technicalities20:38
  • Null Defaults9:01
  • Null Storage4:34
  • Null Design Considerations4:00
  • Why Optional?2:57

Requirements

  • Some basic Java or other programming experience would be helpful but not mandatory

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.




Who this course is for:

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