Posts

Showing posts from March, 2018

Exception Handling

Exception Handling Information regarding Exception:-  Dictionary meaning of the exception is abnormal termination. An expected event that disturbs or terminates normal flow of execution called exception. If the application contains exception then the program terminated abnormally the rest of the  application is not executed. To overcome above limi tation in order to execute the rest of the application must handle the  exception. In java we are having two approaches to handle the exceptions. 1)  By using try-catch block. 2)  By using throws keyword. Exception Handling:- The main objective of exception handling is to get normal termination of the application in order to execute rest of the application code. Exception handling means just we are providing alternate code to continue the execution of remaining code and to get normal termination of the application. Every Exception is a predefined class present in different packages. java.lang.Arith