Replace null with amazing Kotlin and Java sealed classes & interfaces
Imagine a situation when you use in Kotlin or Java code a library that can throw exceptions. The calling function or method may return null if an exception is caught. This one explains how to avoid returning null(ables) with sealed classes and interfaces.