フリー問題

Java SE 8 Programmer I のフリー問題 15 / 20 問目

問題文

A guarded block ends abruptly, its receiving clause runs and ends abruptly for a second reason, and the closing block after them ends abruptly for a third. With which reason does the whole statement end?

選択肢

  1. The third, because the closing block that ends abruptly hands its own reason to the caller and the reason from the receiving clause is dropped on the way out of the statement
  2. The second, because the reason that the receiving clause carried is held onto while the closing block runs, and the reason the closing block raises is folded into it as an extra note that whoever reads the report is able to unpack later on, which leaves the statement in order whichever reason travels upward
  3. The first, because the reason of the guarded block outranks the reasons that come after it and travels upward whichever blocks run in between, the receiving one among them
  4. The whole statement ends in order, because the closing block settles the statement whichever reason it carries

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。