フリー問題

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

問題文

A field carries the access modifier that sits between the widest and the narrowest of the four levels. Which reach does that modifier grant?

選択肢

  1. The modifier lets the field be read from code inside its own package and also from friends listed by a build descriptor file that sit outside of it.
  2. The modifier lets the field be read from code inside its own package and also from callers holding an explicit import that sit outside of it.
  3. The modifier lets the field be read from code inside its own package and also from heirs of a class where it was declared that sit outside of it.
  4. The modifier lets the field be read from code inside its own package and also from types living in a nested scope that sit outside of it.

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

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