Which two are possible outputs? Which two are possible outputs? Which two are possible outputs? A. 4 3 1 B. 1 C. 1 2 D. 2 Show Hint ← Previous question Next question →
imyrta Answer: A, D Explanation: The if statement includes in it’s flow only the throw new RuntimeException(); even if the doMoreStuff(); is in te same line is not part of the if. When the exception will happen the execution will jump at the catch statement. In this case everything after the exception is ignored. Reply
AD
Answer: A, D
Explanation:
The if statement includes in it’s flow only the throw new RuntimeException(); even if the doMoreStuff(); is in te same line is not part of the if.
When the exception will happen the execution will jump at the catch statement. In this case everything after the exception is ignored.