Features to Avoid Null Reference Exceptions in Java and Swift.

Features to Avoid Null Reference Exceptions in Java and Swift.

Ardit Ymeri and Matthias Webhofer have shown in this article their expertise on how you could avoid dereferencing null values. One of the pitfalls in Java is that it allows every non-primitive type to be assigned to null. Unlike Java, Kotlin’s type system supports nullable types, which means types that except for the usual values of their data type may also represent the special value null.

Want to learn more about how to deal with the NullPointerException? Check out this tutorial on how to avoid null reference exceptions in Java and Swift."

To view or add a comment, sign in

More articles by Michaela Prehofer

Insights from the community

Others also viewed

Explore topics