what is the difference between error and exception?
Deepak Verma
Select an image from your device to upload
Error: This is the syntax problem, which leads to complation problem.
Exception:- This is the run time error which interrupts the application execution. (These can be the exceptional cases were the applications logic fail or should fail eg devided by zero).
Exceptions are those which can be handled at the run timewhere as errors cannot be handled.Examples for exceptions: Array out of bonds, attempt todivide by zero ,etc.Exceptions can be handled by handlers using try - catch.