Question from the Kotlin test

How to use the lazy keyword in Kotlin

Medium
val aVar by lazy {
    println("I'm calculating this value")
    "Hello"
}

println(aVar)
println(aVar)
println(aVar)
println(aVar)

At runtime, what will be displayed in the console?

Author: W3D TeamStatus: PublishedQuestion passed 516 times
Edit
-1
Community Evaluations
developer avatar
Incorrect answer
Auteur anonyme
14/09/2024
Problem in string "I calculate" vs "I'm calculating"