We have a function that throws the following exception:
def explosion() = throw NoSuchElementException("Special error text")
What will happen if you call this function but don't wrap it in the try ... catch construct?
We have a function that throws the following exception:
def explosion() = throw NoSuchElementException("Special error text")
What will happen if you call this function but don't wrap it in the try ... catch construct?
Create a free account to access the full topic