フリー問題

Java SE 25 Developer Professional のフリー問題 9 / 20 問目

問題文

Which pair of methods must change together for a value type used as a key?

選択肢

  1. Overriding the comparison method consequently obliges the writer to override the scattering routine, because the collection uses it to pick the target buckets beforehand here.
  2. Overriding the comparison method consequently obliges the writer to override the printing helper, because the collection uses it to pick the target buckets beforehand here.
  3. Overriding the comparison method consequently obliges the writer to override the printing helper, because the collection uses it to pick the external buckets beforehand here.
  4. Overriding the comparison method consequently obliges the writer to override the scattering routine, because the collection uses it to pick the external buckets beforehand here.

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

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