Kotlin vs. Java: Which Is the Best When It Comes to Null Safety?by@nfrankel

Kotlin vs. Java: Which Is the Best When It Comes to Null Safety?

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Kotlin and Java have different approaches to nullability. In Kotlin, every variable of type `X` can be 'null' and the compiler guarantees it. In Java, the compiler refuses to call members on possible null values, i.e., nullable types. Kotlin offers the same operator to achieve the same.
featured image - Kotlin vs. Java: Which Is the Best When It Comes to Null Safety?
Nicolas Fränkel HackerNoon profile picture

@nfrankel

Nicolas Fränkel


Receive Stories from @nfrankel

react to story with heart
Nicolas Fränkel HackerNoon profile picture
by Nicolas Fränkel @nfrankel.Developer Advocate for Apache APISIX *** Learner *** Author of http://leanpub.com/integrationtest
Read all my posts!

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa