What is an Exception?How exceptions are handled in java. 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