Professional Documents
Culture Documents
U5 - Ocq. Omaa (V2) PDF
U5 - Ocq. Omaa (V2) PDF
1. What’s an exception?
A minor error that breaks the regular flow of a program and must be
handled by the programmer.
In subclasses that inherit the class Exception (and on this parent class
too).
Yes, it is possible..
To create a new object of the Exception class or its subclasses and
propagate it.
An enclosed segment of code were the occurrence of an exception may
happen.
9. How many catch blocks can be associated with a try block?
10. What kind of instructions can the programmer use instead of
handling exceptions?
Validations, which look for exceptions and are able to create blocks of
them, tagging each exception accordingly and not interrupting the
regular flow of the program, validating multiple errors at once.