フリー問題

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

問題文

One entry in such a listing is written with a body of its own, and inside that body sits a method bound to instances. When may code beyond the listing invoke it?

選択肢

  1. Code beyond it may invoke that method where a modifier granting widest span was placed ahead of its header since the added body amounts to a class that lacks a name.
  2. Code beyond it may invoke that method when it takes over a reachable declaration of its surrounding kind since the added body amounts to a class that lacks a name.
  3. Code beyond it may invoke that method as soon as its file joins a shared bundle since the added body amounts to a class that lacks a name.
  4. Code beyond it may invoke that method after a cast up to that lone arrangement of it since the added body amounts to a class that lacks a name.

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

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