Skip to content

Glossary: Kotlin Basics

null

Also written: nullable type, String?, nullable

Kotlin's way of writing "no value". Only nullable types, written with a `?` such as `String?`, can hold null, and Kotlin makes you handle null before using such a value.

Where the book teaches it

Related terms

smart cast