Kotlin - Null Safety
What happens if you try to assign
null to a variable declared as var name: String in Kotlin?null to a variable declared as var name: String in Kotlin?name is declared as String without ?, so it cannot hold null.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions