Computer scienceProgramming languagesKotlinControl flowExceptionsException types

Nothing

Theory

Can it go through?

Report a typo

Analyze the body of the function carefully and specify what type of return value the compiler will output?

fun checkIfNotNull() {
    val isNull: Boolean? = null
    if (isNull == null) {
        throw Exception("Value is null!")
    }
}
Select one option from the list
___

Create a free account to access the full topic