98
Null Safety – Calling Java From Kotlin? – Zest for coding&am...
source link: https://nklmish.wordpress.com/2017/11/01/null-safety-calling-java-from-kotlin/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
JVM already provides a safety net in the form of bytecode verification, buffer overflow, type safety, etc.; Kotlin took this to a step further and baked null safety right into the type system. Which means we can deal with null at compile time rather than bumping into Null Pointer Exception. Nevertheless, we can still encounter NPE…
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK