Exception :-
- An unwanted, unexpected event that distrubs the normal flow of a program is called an Exception.
What is the purpose of Exception Handling?
- It is highly recomended to handle the exceptions and the main objective of exception handling is graceful termination of the program.
- Exception handling doesn't mean repairing an Exception we have to provide alternative way to continue rest of the program normally is the concept of Exception Handling.
- for example: our programming requirments is to read data from remote file locating at london at runtime if london file is not available our program should not be terminated abnormally we have to provide some local file to continue rest of the program normally this way of defining alternative is nothing but exception handling.
No comments:
Post a Comment