An exception is any unwanted thing which may interrupt the control flow of the program.
Types of Exceptions
Checked Exception:
Exceptions that are checked at compile time. If some code within a method throws a checked exception, then the method must either handle the exception or it must specify the exception using throws keyword.UnChecked Exception:
exceptions that are not checked at the compiled time.
In Java exceptions under Error and RuntimeException classes are unchecked exceptions, everything else under throwable is checked.
How to Handle Exception
They are handled by 5 keywords.
- try
- catch
- throw
- throws
- finally
I have checked your site and i've found some duplicate content,
ReplyDeletethat's why you don't rank high in google, but there is a tool that can help you to create 100% unique articles, search for; Boorfe's tips
unlimited content