Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 Suppose the main function has no exception handlers and calls function A . Function A has exception handlers for exceptions of type x
Question
Suppose the main function has no exception handlers and calls function Function A has exception handlers for exceptions of type and and it calls function Function has no exception handlers. If function throws an exception of type what happens?
Control exits function B immediately and transfers to an exception handler in function
The rest of the code in function B completes its execution, and then control transfers to an exception handler in function
Control exits function B immediately and transfers to the main function.
The program terminates immediately with an error message.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started