What happens if the function generates an exception of the type not allowed by the specification of exceptions of this function?
Explanation
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
Cosmo
Sign Up Now
or Subscribe for future quizzes