Write a program to raise at least three various exceptions and handle them using suitable handle code code example
Example: how many ways we can do exception handling in java
We can handle exceptions in either of the two ways :
1) By specifying try catch block where we can catch the exception.
2) Declaring a method with throws clause