Exception
Exception is a condition that is caused by a runtime error in the program. When the java interpreter encounter and error such as dividing and integer by 0, it create and exception an object and through it to the catch block and error message will be display for taking a corrective action. This task known’s as exception handling. It performs the following task –
1..Find the problem (Hit the exception).
2..Informed that and error and occur (through the exception).
3..Received the error information (catch the exception).
4..Take corrective action (handle the exception).
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment