Advanced
Kotlin
Q73 / 100
How does Kotlin enforce null-safety at the JVM bytecode level?
Correct! Well done.
Incorrect.
The correct answer is B) Through @Nullable/@NotNull annotations and intrinsic null checks inserted by the compiler
B
Correct Answer
Through @Nullable/@NotNull annotations and intrinsic null checks inserted by the compiler
Explanation
The Kotlin compiler emits intrinsic null-check bytecode (Intrinsics.checkNotNull) for non-null parameter receivers, plus @Nullable/@NonNull annotations for Java interop.
Progress
73/100