フリー問題

Java SE 8 Programmer II のフリー問題 5 / 20 問目

問題文

A developer gives one listed entry a body and puts a method header inside it that ends at a semicolon with nothing after it. What does the compiler report?

選択肢

  1. The compiler turns that file away because a body attached to one listed entry takes on modifiers copied from wherever it was mentioned first and that ban sits on top of the ones a nameless class carries.
  2. The compiler turns that file away because a body attached to one listed entry gets folded into a shape standing alone at package level and that ban sits on top of the ones a nameless class carries.
  3. The compiler turns that file away because a body attached to one listed entry is barred from leaving a member to be filled in later and that ban sits on top of the ones a nameless class carries.
  4. The compiler turns that file away because a body attached to one listed entry loses its link to fields kept by that outer kind and that ban sits on top of the ones a nameless class carries.

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

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