What is the correct output of line in this code:
val lazyValue: String by lazy {
print("Computed! ")
"I am Lazy!"
}
fun main() {
println(lazyValue) // Line 1
println(lazyValue) // Line 2
}What is the correct output of line in this code:
val lazyValue: String by lazy {
print("Computed! ")
"I am Lazy!"
}
fun main() {
println(lazyValue) // Line 1
println(lazyValue) // Line 2
}Create a free account to access the full topic