A

Admin • 833K Points
Coach

Q. Which keyword is used to define constants in Kotlin?

  • (A) const
  • (B) final
  • (C) static
  • (D) constant
  • Correct Answer - Option(A)
  • Views: 15
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin

Use 'const val' to define compile-time constants in Kotlin.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.