Correct Answer : C
To execute all lines of code, we need to throw an exception on the last line of every try
block.
Initially, as the program starts with the main
function, LINE A
gets executed. Then, LINE B
should throw an exception so that LINE C
gets executed. As LINE D
gets the control, it should turn up with an exception so that LINE E
and LINE F
get executed. LINE G
gets executed in the usual programming sequence.
So, the answer is C.