This was an interview question. What is the main difference between unchecked exception and error as both are not caught? They will terminate the program.
Error: These are exceptional conditions that are external to the application, and that the application usually cannot anticipate or recover from.
Runtime exception : These are exceptional conditions that are internal to the application, and that the application usually cannot anticipate or recover from.
You may want to read this :