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!")
}
}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!")
}
}Create a free account to access the full topic