✏️ Explanatory Question
If a try block throws an exception and there is no suitable catch clause to handle it, the exception is propagated upward to the next higher-level try-catch block (if present).
If no such block exists, the program terminates abnormally and displays an error message.
Example:
try {
int a = 10 / 0;
}
finally {
System.out.println("Finally executed before program ends.");
}
Output:
Finally executed before program ends.
Exception in thread "main" java.lang.ArithmeticException: / by zero