A

Admin • 828.03K Points
Coach

Q. What does the !! operator do in Kotlin?

  • (A) It checks for null
  • (B) It converts nullable to non-nullable forcibly
  • (C) It is a comment operator
  • (D) It throws a warning
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin
The !! operator asserts that a value is non-null and throws an exception if it is null.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.