What is unhandled exception in java?
An unhandled exception in Java is a runtime error that occurs but isn't caught by a `try-catch` block. When such an exception propagates up to the main thread and isn't handled, it typically causes the program to terminate abruptly, printing a stack trace to the console.