The null reference is often used to indicate absent values, which isn't obvious to the programmer in many cases. This almost always happens unintentionally in consequence of a bug, which is based on unrecognized references to null. After that, the article demonstrates how Kotlin nullability features work and how they improve your code.Īs Java developers, we're very accustomed to NullPointerExceptions (NPE) that are thrown at the runtime of an application. In this article, we will review the problems that may be caused by null pointers and how to avoid them in Java. By s1m0nw1 2 Comments Null-Safe Programming - The Kotlin Wayĭisclaimer: This ktor article was originally published in the Dzone Java Guide 2018, which can be downloaded here.
0 Comments
Leave a Reply. |