Introduction

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Welcome to the fourth lesson of the second module.

In this lesson you’ll learn about the concept of null values and how to work with them in Kotlin. The null value is a special value that represents the absence of a value. You’ll also discover the differences between nullable, non-nullable and platform types. They are essential concepts in Kotlin, so it’s important to understand them well. Finally, you’ll learn how to implement null checks and how to use null-related operators including the safe call and the Elvis operators.

This lesson covers the following topics:

  • how to check for null in conditions
  • safe casts and null operators
See forum comments
Download course materials from Github
Previous: Quiz: Loop Code Next: Instruction