Skip to main content

Posts

Showing posts with the label how to create user define exception in java

Steps to create user define exception in java

How to create user define exception in java ? Lets Create user defied exception in java . In this java tutorial i am using simple java code example where we accept number from user if number is one our program will throw user defied exception . You will find video tutorial also for this assignment on you tube . there are different types of exception in java mainly 1.User Defined   (user need to handle this exception) 2. System Defined ( it is defined by system itself/ Default  ) we are going to use following block in our program         try         {    //Program logic goes here  } catch           {    } finally           {     } Steps to create user define exception in java  create user define exception class which extends Exception define constructor for user defined exception class ...

Labels

Show more