Exception in thread

Report a typo

What happens after launching the following code?

fun main() {
    val thread = thread(name = "secondary", start = false, block = {
        val str: String? = null
        println("Length is ${str!!.length}")
    })
    thread.start()
    while (true) {
        // do nothing
    }
}
Select one option from the list
___

Create a free account to access the full topic