Kotlin - Null Safety
Identify the error in this Kotlin code:
fun main() {
val name: String = null
println(name)
}fun main() {
val name: String = null
println(name)
}name is declared as non-nullable String but assigned null.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions