Understanding subSequence in Kotlin

Report a typo

Consider the following chunk of Kotlin code:

val myText: CharSequence = "Welcome to Kotlin Programming."
val mySubText = myText.subSequence(8, 17)

After executing the above code snippet, what will the 'mySubText' contain and what is type of 'mySubText' variable?

Select one option from the list

Create a free account to access the full topic