Is there any alternative for @EagerInitialization ?
r
rebok
03/24/2026, 8:14 AM
I'm afraid that there's not necessarily a direct alternative but you can just mention the object/value/variable you want initialized at the start of your program app
Like
Copy code
fun main() { MyObject; /*...*/
All the fields of classes and objects are initialized when the class is instantiated