Kotlin, lateinit vs lazy which is the safest

后端 未结 0 1124
广开言路
广开言路 2021-01-21 11:29

I have been using both of them, both of them provide safety for NullPointerException but the lateinit can cause UnInitializedPropetyException

相关标签:
回答
  • 消灭零回复
提交回复
热议问题