A

Admin • 802.91K Points
Coach

Q. How do you safely access a property that may be null?

  • (A) property?
  • (B) property!!
  • (C) property.?name
  • (D) property?.name
  • Correct Answer - Option(D)
  • Views: 3
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin
Use the safe call operator '?.' to access nullable properties safely.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.