Computer Science, asked by SKP1111, 9 months ago

What is exception handling?Write two advantages of using it?​

Answers

Answered by Anonymous
1

HELLO MATE ☺☺

Exception handling is the process of responding to exceptions when a computer program runs. An exception occurs when an unexpected event happens that requires special processing. ... Exception handling attempts to gracefully handle these situations so that a program (or worse, an entire system) does not crash.

ADVANTAGE :

✏✏Separating Error-Handling Code from "Regular" Code. Exceptions provide the means to separate the details of what to do when something out of the ordinary happens from the main logic of a program. In traditional programming, error detection, reporting, and handling often lead to confusing spaghetti code

#mark brain list .

Similar questions