fun main() { var nullableString: String? = null println(nullableString?.length ?: 0) // Null safe method call with elvis operator for fallback nullableString = "Not Null" println(nullableString) } fun nullableFun(value: Any?) { value!! // Explicitly tell the compilar that it's not null }