What is an exception?
An expected and unwanted event that disturb normal flow of the program.Example:
1. in real-life:
TyrePunchuredException, sleepingException
2. in application: fileNotFoundException, invalidDate entered, Connection fails etc.
Exception handling doesn’t mean repairing an exception, we have to provide an alternative way to continue rest of the program normally.
It is called Exception handling.
TyrePunchuredException, sleepingException
2. in application: fileNotFoundException, invalidDate entered, Connection fails etc.
Exception handling doesn’t mean repairing an exception, we have to provide an alternative way to continue rest of the program normally.
It is called Exception handling.