explain the user defined exceptionsuser defined


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.

 

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: explain the user defined exceptionsuser defined
Reference No:- TGS0355105

Expected delivery within 24 Hours