• +91 9723535972
  • info@interviewmaterial.com

Kotlin Interview Questions and Answers

Question - How can we perform String Interpolation in Kotlin?

Answer -

In Kotlin, String Interpolation is used when you want to use some variable or perform some operation inside a string. For String Interpolation, we can use the $ sign to use some variable in the string or can perform some operation in between the {} sign.

For example:

var name = "JavaTpoint"  
print("The best tutorial website is: $name")  

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners