Sobes.tech
Junior — Senior

Code execution analysis with class and nullable fields

livecode

Task condition

Describe the order of program execution and specify what text will be printed in the console.

class A {
    lateinit var first: Model
    var second: Model? = null
}

fun main() {
    val a = A()
    a.first.get()
    a.second?.get()
}