WHAT IS EXCEPTION HANDLING IN JAVA ?
Exception is an abnormal condition.(Dictionary Meaning)
In Java, an exception is an event that disrupts the normal flow of the program.
It is an object which is thrown at runtime.
In computing and computer programming, exception handling is the process of responding to the execution of a program (Wikipedia Definition). 3 occurrence of exceptions , anomalous or exceptional conditions requiring special processing during the
In general, an exception breaks the normal flow of execution and executes a pre-registered exception handler; the details of how this is done depend on whether it is a hardware or software exception and how the software exception is implemented.
Exception handling deals with these events to avoid the program or system crashing, and without this process, exceptions would disrupt the normal operation of a program.
Exceptions occur for numerous reasons, including invalid user input, code errors, device failure, the loss of a network connection, insufficient memory to run an application, a memory conflict with another program, a cause a program to fail. program attempting to divide by zero or a user attempting to open files that are unavailable.
It is an event which occurs during the execution of a program, that disrupts the normal program flow and may cause a program to fail.
All of these problems have to be handled using exception handling.
Comments
Post a Comment