We do perform different actions using methods, functions in programming. But there might be some situations where our method shows some abnormal behavior. Let us take an example of a situation where we divide One by 0, there is no error in this statement, but the exception is that the division is not possible as it gives undefined value. But, instead of leaving the error, we need to inform the person coding that there is an unknown behavior for which we use Exceptions.
↧