Sobes.tech
Middle

When does the initialization of a companion object occur in Kotlin?

sobes.tech AI

Answer from AI

When first accessing any member of the class to which this companion object belongs (a static method, property, or the companion object itself).