A

Admin • 833.24K Points
Coach

Q. Which Kotlin keyword marks a variable that must be initialized later?

  • (A) defer
  • (B) lateinit
  • (C) lazy
  • (D) future
  • Correct Answer - Option(B)
  • Views: 28
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin

lateinit allows a non-null variable to be initialized later (not at declaration).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.