What is user defined exceptions in Java?

A user defined exception is exception class provided by API provider or application provider which extends Exception defined in the classes of JAVA API. It is used to deal with the unconventional action in your codes. JAVA use try-catch construct to take it. In user defined exception class,you must rewrite method extends its parent class Exception.You can throw the exception out in try construct and deal with in catch.