User defined exception are checked or unchecked exceptions

java

Solution

Only those exceptions that are subclasses of `RuntimeException` are considered unchecked.

Yours isn't, and therefore is a checked exception.

Problem

In my web application created a User defined exception extends with Exception.Is it Checked or unchecked exception ``` public class InvalidDataException extends Exception{ public InvalidDataException() { super(); // TODO Auto-generated constructor stub } /** * @param arg0 */ public InvalidDataException(String message) { super(message); // TODO Auto-generated constructor stub } } ```

Original source