Print correct exception message

Report a typo

Take a look at this code:

fun doComputations(value: Int) {
    if (value / 2 == 1) {
        throw Exception("Divided by 2!")
    } else if (value + 2 / 2 == 1) {
        throw Exception("Some computations here")
    } else {
        throw Exception("No computations")
    }
}

You call this function as doComputations(0). What exception message will you get?

Select one option from the list
___

Create a free account to access the full topic