Intermediate Kotlin
Q89 / 100

What is the difference between Kotlin's List and Array?

Correct! Well done.

Incorrect.

The correct answer is B) Array is a Java array with a fixed size; List is a Kotlin collection interface with rich API and two implementations (read-only and mutable)

B

Correct Answer

Array is a Java array with a fixed size; List is a Kotlin collection interface with rich API and two implementations (read-only and mutable)

Explanation

Kotlin's Array maps directly to Java arrays. List/MutableList are Kotlin interfaces with richer API. Prefer List unless interop or performance requires Array.

Progress
89/100