...

/

Introduction to Nullability

Introduction to Nullability

Explore Kotlin's solutions to nullability issues, including explicit rules and versatile tools for efficient null management.

Understanding the need for Kotlin

Kotlin started as a remedy to Java problems, and one of the biggest problems in Java is nullability. In Java and many other languages, every variable is nullable, so it might have the null value. Every call on a null value leads to the famous NullPointerException (NPEIt is a runtime error that occurs when a program tries to use or access an object that doesn’t exist (is null).). This is the number one exception in most Java projects. It ...