Many links are changed in javatpoint. If any link is not working, please delete the cookie of your browser and refresh the page.

91-9990449935

 0120-4256464

Custom Exception

If you are creating your own Exception that is known as custom exception or user-defined exception.
Output:Exception occured: InvalidAgeException:not valid
       rest of the code...
Next TopicNested Classes