
Null safety is one of the best features of Kotlin. If you are familiar with Java, then must have encountered with NullPointerException and to remove this or in other words, we can say that to safely deal with this NullPointerException, the developers of Kotlin introduced Null safety. So, in Kotlin, a normal property can’t hold a null value. If you are doing so then you will get compile-time error.
blog.mindorks.com