Intermediate
Kotlin
Q48 / 100
What is the lazy property delegate?
Correct! Well done.
Incorrect.
The correct answer is B) A property whose initialization is deferred until first access
B
Correct Answer
A property whose initialization is deferred until first access
Explanation
val heavy by lazy { expensiveComputation() } only runs expensiveComputation() on the first access, caching the result for subsequent reads.
Progress
48/100