Exception Handling. Assume for each question below that execution began in main
ID: 3697872 • Letter: E
Question
Exception Handling. Assume for each question below that execution began in main () and that Blank Expressions Exception and Candy Break Exception do not inherit from each other. What is the sequence of events if a CandyBreakException is thrown in ask ()? Exception propagates to questions () rightarrow Exception propagates to main () rightarrow Exception is caught rightarriw "Caught an Exception." is printed to the console rightarrow Program exits without crashing Exception propagates to questions () rightarrow Exception propagates to main () rightarrow Exception is caught rightarrow exits without crashing Exception propagates to questions () rightarrow Exception is not caught rightarrow program crashes Exception propagates to questions () rightarrow Exception propagates to main () rightarrow "Class is dismissed." is printed to the console rightarrow Program exits without crashingExplanation / Answer
Answer:c
Reason :your are not catch the Exception BlackExpressionsException for ask() method.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.