Loading…
A short voice session: one question, one follow-up, then instant feedback — up to 5 minutes.
Kotlin distinguishes nullable and non-nullable types. Use explicit checks, safe calls, or a meaningful fallback instead of asserting that a nullable value exists.
A String? can contain null, while a normal String cannot in ordinary type-safe Kotlin code. A safe call skips access when its receiver is null; the Elvis operator supplies a fallback. The not-null assertion can still crash. Values crossing Java or serialization boundaries need particular care because compile-time guarantees do not validate all external data.