Kotlin - Null Safety
Which of the following Kotlin variable declarations is correct to allow
null values?null values?? after the type allows the variable to hold null.null explicitly, so val name: String? = null is correct.? and initialized to null [OK]? and initialize nullable variables [OK]?null to non-nullable types15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions