Question { 85246 }
what is difference between Exception and Error?
Answer
Exceptions are also kind of errors which we can hadle at
both compile time and run time by using try and catch
blocks.
These are two types: Compile time and runtime.
Sql and IO operations are come under compile time array
index out of bounds and null pointer these are come under
runtime exceptions
Errors are the problems which we cant hadle, like stack
overflow and memory out of bounds like that...