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 532 times
Edit
-1
Community Evaluations
developer avatar
Incorrect answer
Auteur anonyme
14/09/2024
Problem in string "I calculate" vs "I'm calculating"
developer avatar
Auteur anonyme
31/10/2024
Indeed ! You can edit the question to get contribution points.