What happens if an exception is not caught in Java?
If an exception is not caught, the program will crash and stop running.
You're partially correct. If an uncaught exception reaches the main method, it can crash the program, but exceptions can propagate to other parts of the program.
Can you explain how exception propagation works when an exception is not caught?