Kotlin's feature that prevents NullPointerExceptions at compile time is called:
- Null safety (nullable types like String?)
- Garbage collection
- Inheritance
- Reflection
Answer
A) Null safety (nullable types like String?)
The type system distinguishes nullable and non-null types.
Computer Science MCQ · More App Store Deployment and Mobile Programming Languages MCQs · Practise