A

Admin • 828.03K Points
Coach

Q. What will 'println("${2+3}")' output in Kotlin?

  • (A) ${2+3}
  • (B) 2+3
  • (C) 5
  • (D) null
  • Correct Answer - Option(C)
  • Views: 6
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin
Kotlin string templates evaluate expressions inside '${}'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.