`T?` is a nullable type, `?.` is a safe call, `?:` (Elvis) provides a default, and `!!` asserts non-null (throws if it’s null).
val name: String? = null
val len = name?.length ?: 0
// val crash = name!!.length // throws if name is nullKotlin encodes nullability in the type system.
val len = name?.length ?: 0name?.let { println(it.length) }