CBSE Class 12 Computer Science Question 18 of 30

Exception Handling — Question 4

Back to all questions
4
Question

Question 4

What is the difference between an error and exception?

Answer

An Error is a bug in the code that causes irregular output or stops the program from executing whereas an Exception is an irregular unexpected situation occurring during execution on which programmer has no control.