A

Admin • 833K Points
Coach

Q. How do you write a comment in Kotlin?

  • (A) # comment
  • (B) // comment
  • (C) -- comment
  • (D) <!-- comment -->
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin

Kotlin uses // for single-line comments and /* */ for multi-line comments.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.