We read your photo as:

What is the primary difference in Kotlin's type system related to null values?

Computer Science

ScanSolve AI Answer

The correct option is:

  • Nullable and non-nullable type declarations

Kotlin's type system distinguishes between references that can hold null (nullable types, denoted by ? after the type, e.g., String?) and references that cannot (non-nullable types, e.g., String). This feature forces developers to explicitly handle potential null values at compile time, significantly reducing the occurrence of null pointer exceptions.

Was this helpful?

Still stuck on this one?

Ask a follow-up, and the answer starts from this question.

Got a different question?Ask your own question
Handwritten step-by-step solution preview

Handwritten Step-by-Step Solution

Get this as a handwritten image on WhatsApp — like a tutor wrote it for you.

Try on WhatsApp