Kotlin - Null Safety
What will be the output of this Kotlin code?
fun main() {
val message: String = "Hello"
println(message.length)
}fun main() {
val message: String = "Hello"
println(message.length)
}message is a non-nullable String initialized with "Hello".message.length is 5.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions