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

Given an explicit nullability annotation on the Java side, how does it change the platform-type behavior in Kotlin?

// Java import org.jetbrains.annotations.Nullable; public class J { public static @Nullable String get() { return null; } } // Kotlin val s = J.get() // inferred type?