Kotlin - Null Safety
Which of the following is the correct syntax to declare a nullable String variable in Kotlin?
? after the type name to mark it nullable, e.g., String?.String? correctly. Options A, B, and D use invalid syntax.? [OK]? right after the type name for nullable [OK]? before the type! instead of ?15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions