Kotlin - Null Safety
Which Kotlin code snippet safely calls
printLength() on a nullable String input and provides a default message if null?printLength() on a nullable String input and provides a default message if null?input?.let { printLength(it) } calls printLength only if input is not null.println("No input") if input is null.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions