フリー問題

Java SE 21 Developer Professional のフリー問題 6 / 20 問目

問題文

Loggers are obtained by name. How are Logger instances related to one another, and what follows from that relationship?

選択肢

  1. Every logger is independent, so each one needs a handler which is attached before anything is written.
  2. Names form a hierarchy separated by dots, and a record that passes the level check is offered to the handlers of the logger and then to those of its ancestors.
  3. Names form a hierarchy but the relationship affects only the level, so a record is written by the handlers of the root logger.
  4. The hierarchy is derived from the package structure of the classes that request the loggers, so two loggers with different names stay unrelated.

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

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