exceptions diagram in java code example
Example 1: what is exception in java
An exception is an event, which occurs during the execution of a
program, that disrupts the normal flow of the program's instructions.
Example 2: exceptions in java
Unchecked:
-IndexOutOfBounds exception(while working with arrays/strings)
-NullPointerException(if I forget to instantiate the objects)
-ArithmaticException
Checked:
-IOException
-SQLException
-FileNotFountException