Exceptions are usually the things when something is wrong with the code.
Error is sth which is out of your control , and jvm usually crashes in case of Error so you can't continue the program .
exception:
- it can be handled by jvm.
- it wil be occured in run time.
error:
- it can be handled by us.(missing semicolon at the end of statement, that is handled by us)
Errors are the external interrupts that terminate the execution of programme
ex Running out of memory,Stack overflow
Exceptions are abnormal, unexpected events or extraordinary
conditions that may occur at runtime.
Example: file not found exception, unable to get connection exception..etc..