Problem Statement
What is an exception in object-oriented programming?
Explanation
An exception is a runtime event that signals an error or unusual condition, such as dividing by zero or reading a missing file. Handling exceptions allows a program to respond gracefully rather than crashing.