フリー問題

Java SE 11 Developer のフリー問題 17 / 20 問目

問題文

A batch worker is started and then given the highest priority that the class defines, and a later reading of that thread reports a middling value instead. Which of these accounts is the one the class backs?

選択肢

  1. The value has been kept and the reading looks at another field, because the reading returns the priority that the runtime has settled on for the moment and only the request of the caller is stored in the field of the thread
  2. The value has been kept and the reading looks at another field, because the reading returns the priority that the parent of this thread held and any change made after the start of it is held in a separate place
  3. The value has been cut down to what the group of that thread allows, because the class rounds the value that the caller names to the nearest step that the group has published and each step of the scale covers a span
  4. The value has been cut down to what the group of that thread allows, because the class sets the priority to the smaller of the value that the caller names and the greatest priority that every thread of the group may hold

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

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