I used to think that when an exception happened, the whole java application will be terminated. For example, I write a test function to test my idea.
public void
No. Exception handlers of java handles the abnormal execution of the program
Exception handlers