A

Admin • 828.03K Points
Coach

Q. Which of the following is a correct Kotlin string template?

  • (A) Hello + name
  • (B) Hello {name}
  • (C) Hello $name
  • (D) Hello &name
  • Correct Answer - Option(C)
  • Views: 4
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin
Kotlin uses $name for string interpolation.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.