フリー問題

Java Foundations のフリー問題 11 / 20 問目

問題文

A switch statement selects on an int variable, and the code for the matching case does not end with a break statement. What happens next at run time?

選択肢

  1. Control automatically continues into the preceding case until a break appears or the switch ends.
  2. Control automatically continues into the default section until a break appears or the switch ends.
  3. Control automatically continues into the containing method until a break appears or the switch ends.
  4. Control automatically continues into the following branch until a break appears or the switch ends.

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

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