


I use String in those statements, but the same things can be said about every other type, including Int, Float, Person, etc.


Kotlin provides different mechanisms to help solve this problem. In this article you will learn how to handle nullable types in Kotlin correctly. Having to place null check conditions everywhere just to make our code null-safe is something that probably most of us have suffered quite often. One of the most annoying aspects in writing code in Java is dealing with null elements.
