Exceptions in Java

Java exception will cause program interruption. If you use try to catch the exception and then catch to handle it, the program will not be interrupted. If throws throws the exception and does not handle it, it will still cause program interruption. Is it right to understand anomalies this way?

Feb.26,2021

throw Exception program will also run to. Run to the place where the exception should be handled, and if it is not handled, the program interrupts..

Menu