Answer:
Catch the exception.
Step-by-step explanation:
In Computer programming, an exception can be defined as an unprecedented error or event that occurs unexpectedly while a computer software application or program is running. Thus, when this exception occurs while a software program is running, it would affect its flow.
However, if the software program is able to handle and process unprecedented error or event that occured unexpectedly, it would continue to run but if it cannot handle it, the software program will force quit.
In Java programming language, exception class such as IOException, UserException, TimeoutException, and exception subclass such as CharacterCodingException, FileNotFoundException etc may be thrown when a software program encounters an unexpected error or event.
A software program that is properly coded or well-written is able to check for exceptions and appropriately handle the exceptions (unexpected errors) so as to prevent the software program from crashing or forced to quit.
This ultimately implies that, when an exception is thrown using a try clause or throw statement as it occurs, it is caught by a block of code in the software program.
Hence, if an exception is thrown, it is passed to a block of code that can catch the exception, which means to receive it in a block that can handle the problem.