Explain the user defined Exceptions.
User Defined Exceptions are the exceptions which are defined by user for specific purposed. This enables custom exceptions to be generated and caught in the similar manner as normal exceptions. When defining a User Defined Exception, we need to take care of the below aspects:
It must be extend from Exception class.
Use toString() method to display information about exception.