Isn't an unchecked exception that is caught in a try block a checked exception in Java?
I was told that in Java, unchecked exceptions can be caught in a try block, but if it's caught, isn't it called a checked exception? Unchecked exceptions are exceptions that don't need to be caught in a try - catch block. Unchecked exceptions are subclasses of the RuntimeException or Error classes. Checked exceptions are exceptions that need to be caught in a try - catch block. The definition of checked and unchecked exceptions can be found in Section 11.2: Compile-Time Checking of Exceptions of The Java Language Specification : The unchecked exceptions classes are the class RuntimeException