Exception Handling in Java

Definition: An exception is an event, which occurs during the execution of a program, that disrupts the normal flow of a program’s instruction. Why do we need Exception Handling? 1. To separate “error handling” code from the “regular code”. 2. The programmer use exceptions to indicate that an error has occurred. Lets see an example… Read more

Share