+ 10
Qus:-What is mean by Exception?
2 odpowiedzi
+ 11
A fancy word for a run time error.
+ 7
An exception is a problem that arises during the execution of a program and it interrupts the normal flow of the program.
These exceptions can be handled using Exception Handling mechanism.
Exception handling is a task to maintain normal flow of program. For this we should try to catch the exception object thrown by the error condition and then display appropriate message for taking corrective actions.
In Java, exceptions can be handled using 5 keywords:
1. try
2. catch
3. finally
4. throw
5. throws