

But don't worry, Kotlin offers a solution for this. According to a survey, NullPointerException is the most common exception in java applications. Accessing a type that can be null can result in a null reference exception, commonly known as a NullPointerException. Coming to the second part of our article, we'll discuss why we need to be concerned with null safety.

In programming, a type system is a set of rules that determine how data is stored, modified, and used.

In this article, we're going to dive deep into Kotlin's type system and learn all about null safety.įirst, let's define what a type system is. In the previous articles, we covered some basics of Kotlin and OOPS. Welcome to the fourth article in this series on Android Development.
