Using try-catch blocks

Report a typo

You have the following program:

class NewThread : Thread() {
    override fun run() {
        println("run".toInt())
    }
}

fun main() {
    val thread = NewThread()
    thread.start()
    thread.join()
}

Choose correct statements about catching an exception in the custom thread.

Select one or more options from the list
___

Create a free account to access the full topic