Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardKotlinplatform types mechanicsSingle-choice MCQ

A Kotlin platform type appears as `String!` in IDE hover. At what point does a runtime null-check actually get inserted when you assign a platform value to a non-null Kotlin type?

// Java public class Api { public static String name() { return null; } } // Kotlin val s: String = Api.name() // platform String! -> String println(s.length)