Kotlin - Null Safety
Which of the following Kotlin variable declarations allows the variable to hold either a
String value or null?String value or null?? to a type makes it nullable, allowing it to hold null.var name: String? allows null.var name: String does not allow null.Nullable is not valid Kotlin syntax.String!! is invalid syntax.? suffix [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions