Hi all. My first post so please direct me to where questions like this can be answered if the forum isn't the right place.
This question is based on question 9 of chapter 9 in the SCJP 6 study guide by Kathy and Bert. The code is immaterial to the principal I'm exploring here so I won't include it. The answer choices are:
A. It prints X and exits
B. It prints X and never exits
C. It prints XY and exits almost immediately
D. another option E. another option F. The code does not compile
G. An exception is thrown at runtime
The code would have been printed X and then an exception would have been thrown. In my answer I chose A and G. A because the X would have been printed and the program would have exited after the X was printed. And G because the exit would have been caused by the throw of an exception.
The answer given in the book for this question is just G, from which I wonder whether the word "exit" is being used for normal termination and not an abrupt termination.
My question is this: In the exam when I see the word "exits" in the exam, should I infer that this means a normal exit and not a throw?