What is the difference between error and exception?
- Error in a program is irrecoverable. That means, when an error occurs, the progarm will terminate immediately. There are several common errors like OutOfMemmories error and StackOverFollow error.
- Exceptions are on the other hand. That mean we can recorve them by exception handling