Skip to main content

what is the difference between error and exception?

Exceptions are those which can be handled at the run time
where as errors cannot be handled.
Examples for exceptions: Array out of bonds, attempt to
divide by zero ,etc.
Exceptions can be handled by handlers using try - catch.

Comments

Popular posts from this blog