1. Which feature is central to Swift's safety against null-pointer crashes?
- Optionals that make the absence of a value explicit
- Garbage collection
- Manual memory management
- Dynamic typing
Show answer
Answer: Optionals that make the absence of a value explicit
Optionals force code to handle missing values explicitly.
Lesson: What Swift Is and Where It Runs