Null Safety In Kotlin
In this blog we will take a look at how Kotlin handles null references. Kotlin is a cross-platform, statically typed, general-purpose programming language. Any language that has concept of null reference will have a possibility of throwing NullPointerException, Kotlin on the other hand is designed in such a way that it is really difficult to get a NullPointerException In this article we will make use of Java to compare how Kotlin behaves differently to null references....