Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Working with Nulls in Java

via Pluralsight

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
In this Java tutorial you will learn the best practices and techniques to handle nulls and avoid NullPointerExceptions in Java.

How many times have you thought "this object can never be null" only to be proven wrong? In this course, Working with Nulls in Java, you'll learn best practices for effectively handling nulls and avoid NullPointerExceptions. First, you'll see what nulls mean and some common ways to deal with them. Next, you'll explore how to use annotations to check for nulls. Finally, you'll discover how to use the Null Object pattern and the Optional type to reduce unexpected exceptions even further. When you're finished with this course, you'll understand the different techniques to handle nulls effectively in Java programs.

Syllabus

  • Course Overview 1min
  • Working with Reference Types and Nulls 21mins
  • Checking for Null Using Annotations 21mins
  • Using the Null Object Pattern 11mins
  • Using Optional Instead of Null 16mins

Taught by

Esteban Herrera

Reviews

4 rating at Pluralsight based on 105 ratings

Start your review of Working with Nulls in Java

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.