38. What is the difference between error and exception?

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

Leave a Reply

Your email address will not be published. Required fields are marked *