What happens if the function generates an exception of the type not allowed by the specification of exceptions of this function?
In the function description, you can specify the "specification of exceptions" - a list of exceptions that can be generated by this function:
int g (float h) throw (a, b, c,)
// function body
If an exception not listed in the specification is generated, the unexpected exceptions processing function is called

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Sign Up Now
or Subscribe for future quizzes