String nullable

Report a typo

What is the output of this snippet:

fun main() {
    val name = "Bob"
    val nickname: String? = null
    print(name?.length + nickname.length)
}
Select one option from the list
___

Create a free account to access the full topic