フリー問題

Java SE 25 Developer Professional のフリー問題 15 / 20 問目

問題文

How can a single Java source file be launched without declaring a class around the entry method?

選択肢

  1. The compiler automatically supplies the surrounding type when it is unqualified, and the entry method may then omit its formal parameters in that file.
  2. The compiler automatically supplies the surrounding type when it is unqualified, and the entry method may then omit its final modifiers in that file.
  3. The compiler automatically supplies the surrounding type when it is omitted, and the entry method may then omit its formal parameters in that file.
  4. The compiler automatically supplies the surrounding type when it is omitted, and the entry method may then omit its final modifiers in that file.

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

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